|
@@ -1,6 +1,7 @@
|
|
|
package com.tzld.piaoquan.risk.control.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.tzld.piaoquan.risk.control.common.base.CommonResponse;
|
|
|
import com.tzld.piaoquan.risk.control.config.LoginUserContext;
|
|
|
import com.tzld.piaoquan.risk.control.config.QywxConfig;
|
|
|
import com.tzld.piaoquan.risk.control.dao.mapper.UserBaseMapper;
|
|
@@ -115,6 +116,21 @@ public class QwLoginServiceImpl implements QwLoginService {
|
|
|
return isSuccess;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public QwCommonResModel<QwLoginQRCodeModel> secondaryValidation(String uuid) {
|
|
|
+ String url = qywxConfig.getDomain() + qywxConfig.getPath("secondaryValidation");
|
|
|
+ Map<String, Object> requestBody = new HashMap<>();
|
|
|
+ requestBody.put("uuid", uuid);
|
|
|
+ String params = JSON.toJSONString(requestBody);
|
|
|
+ Optional<String> response = httpPoolClientDefault.postJson(url, params);
|
|
|
+ if (response.isPresent()) {
|
|
|
+ QwCommonResModel<QwLoginQRCodeModel> qrCodeModel = QwCommonResModel.parseResponse(response.get(), QwLoginQRCodeModel.class);
|
|
|
+ qrCodeModel.getData().setUuid(uuid);
|
|
|
+ return qrCodeModel;
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
private String initUUID(String vid) {
|
|
|
Long userId = LoginUserContext.getUserId();
|
|
|
Map<String, Object> requestBody = new HashMap<>();
|