Browse Source

IMEI校验规则

zyg 2 years ago
parent
commit
e87f8f3ac3

+ 1 - 1
src/main/java/cn/fastfun/controller/api/ApiAppDeviceController.java

@@ -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()),