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