|
@@ -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) {
|