|
@@ -5,6 +5,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.common.util.SecurityUtil;
|
|
|
+import com.fdkankan.manage.common.CacheUtil;
|
|
|
import com.fdkankan.manage.common.PageInfo;
|
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
|
import com.fdkankan.manage.entity.*;
|
|
@@ -95,7 +96,7 @@ public class AuthorizeCameraServiceImpl extends ServiceImpl<IAuthorizeCameraMapp
|
|
|
//获取机器UUID,机器名称
|
|
|
MachineRegDto machineRegDto = null;
|
|
|
try {
|
|
|
- machineRegDto = RegCodeUtil.ParseMachineCode(param.getMachineCode());
|
|
|
+ machineRegDto = RegCodeUtil.builder().env(CacheUtil.laserRegEnv).build().ParseMachineCode(param.getMachineCode());
|
|
|
}catch (Exception e){
|
|
|
throw new BusinessException(ResultCode.MACHINE_CODE_ERROR);
|
|
|
}
|
|
@@ -142,7 +143,7 @@ public class AuthorizeCameraServiceImpl extends ServiceImpl<IAuthorizeCameraMapp
|
|
|
}
|
|
|
param.setCameraNum(detailHashMap.size());
|
|
|
dtos.setCamRegs(camRegs);
|
|
|
- String authorizeKey = RegCodeUtil.batchGenRegeditCamCode(dtos);
|
|
|
+ String authorizeKey = RegCodeUtil.builder().env(CacheUtil.laserRegEnv).build().batchGenRegeditCamCode(dtos);
|
|
|
if(StringUtils.isBlank(authorizeKey)){
|
|
|
throw new BusinessException(ResultCode.GET_MACHINE_CODE_ERROR);
|
|
|
}
|
|
@@ -201,7 +202,7 @@ public class AuthorizeCameraServiceImpl extends ServiceImpl<IAuthorizeCameraMapp
|
|
|
camRegDto.setToSn(snCode);
|
|
|
camRegs.add(camRegDto);
|
|
|
dtos.setCamRegs(camRegs);
|
|
|
- String authorizeKey = RegCodeUtil.batchGenRegeditCamCode(dtos);
|
|
|
+ String authorizeKey = RegCodeUtil.builder().env(CacheUtil.laserRegEnv).build().batchGenRegeditCamCode(dtos);
|
|
|
if(StringUtils.isBlank(authorizeKey)){
|
|
|
throw new BusinessException(ResultCode.GET_MACHINE_CODE_ERROR);
|
|
|
}
|