lyhzzz 1 year ago
parent
commit
0e2df855b1

+ 0 - 3
src/main/java/com/fdkankan/ucenter/controller/LoginController.java

@@ -107,9 +107,6 @@ public class LoginController extends BaseController {
      */
     @PostMapping("/register")
     public Result register(@RequestBody RegisterParam param) throws Exception {
-        if(param.getMsgAuthCode().equals(registerValidCode)){
-            param.setClear("YES");
-        }
         loginService.register(param);
         return Result.success();
     }

+ 15 - 12
src/main/java/com/fdkankan/ucenter/httpClient/service/LaserService.java

@@ -1,6 +1,7 @@
 package com.fdkankan.ucenter.httpClient.service;
 
 import cn.hutool.core.io.FileUtil;
+import cn.hutool.core.thread.ThreadUtil;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.nacos.common.http.client.NacosAsyncRestTemplate;
@@ -301,19 +302,21 @@ public class LaserService {
     }
 
     public void toBind(Boolean bind,String snCode,String userName,Long userId) {
-        try {
-            SsBindParam param = new SsBindParam();
-            param.setBind(bind);
-            param.setSnCode(Lists.newArrayList(snCode));
-            param.setPhone(userName);
-            param.setUserId(userId);
-            Result responseEntity = laserClient.toBind(param);
-            if( responseEntity.getCode() != HttpStatus.OK.value()){
-                log.error("解绑用户激光转台下载失败:{}",responseEntity);
+        ThreadUtil.execute(() -> {
+            try {
+                SsBindParam param = new SsBindParam();
+                param.setBind(bind);
+                param.setSnCode(Lists.newArrayList(snCode));
+                param.setPhone(userName);
+                param.setUserId(userId);
+                Result responseEntity = laserClient.toBind(param);
+                if( responseEntity.getCode() != HttpStatus.OK.value()){
+                    log.error("解绑用户激光转台下载失败:{}",responseEntity);
+                }
+            }catch (Exception e){
+                log.error("解绑用户获取激光转台下载状态失败!",e);
             }
-        }catch (Exception e){
-            log.error("解绑用户获取激光转台下载状态失败!",e);
-        }
+        });
     }
 
     public void updateStatus(List<String> numList, Integer payStatus) {