|
|
@@ -14,6 +14,7 @@ import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
import com.fdkankan.ucenter.common.RedisKeyUtil;
|
|
|
import com.fdkankan.ucenter.common.constants.NacosProperty;
|
|
|
+import com.fdkankan.ucenter.config.UcenterConfig;
|
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.constant.QrCodeFilePath;
|
|
|
import com.fdkankan.ucenter.entity.Camera;
|
|
|
@@ -30,6 +31,7 @@ import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import io.netty.util.internal.UnstableApi;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -60,6 +62,10 @@ public class LoginService {
|
|
|
private FYunFileServiceInterface fYunFileServiceInterface;
|
|
|
@Autowired
|
|
|
private IMailTemplateService mailTemplateService;
|
|
|
+ @Autowired
|
|
|
+ UcenterConfig ucenterConfig;
|
|
|
+ @Autowired
|
|
|
+ ISceneCooperationService sceneCooperationService;
|
|
|
|
|
|
|
|
|
public LoginVo login(User user){
|
|
|
@@ -189,8 +195,9 @@ public class LoginService {
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3008, LoginConstant.FAILURE_MSG_3008);
|
|
|
}
|
|
|
param.setPassword(password);
|
|
|
- userService.register(param);
|
|
|
-
|
|
|
+ User register = userService.register(param);
|
|
|
+ sceneCooperationService.saveByRegister(register,ucenterConfig.getRegisterCooperationMeshNum(),"mesh");
|
|
|
+ sceneCooperationService.saveByRegister(register,ucenterConfig.getRegisterCooperationLaserNum(),"laser");
|
|
|
}
|
|
|
|
|
|
public JSONObject createLoginQrCode() throws Exception {
|