|
@@ -105,7 +105,7 @@ public class ApiAppDeviceController {
|
|
|
if (!param.getImei().substring(1, 3).equals(param.getPackModel().substring(0, 2))) {
|
|
|
throw new ApiRuntimeException("包型号与imei对应关系错误");
|
|
|
}
|
|
|
- if (!param.getImei().substring(3, 6).equals(param.getCellModel().substring(1, 3))) {
|
|
|
+ if (!param.getImei().substring(3, 6).equals(param.getCellModel().substring(0, 3))) {
|
|
|
throw new ApiRuntimeException("单体型号与imei对应关系错误");
|
|
|
}
|
|
|
PackModel packModel = packModelService.getOne(Arrays.asList(QueryParamExp.eq("cellModel", param.getCellModel()),
|