|
@@ -44,7 +44,6 @@ public class QwLoginServiceImpl implements QwLoginService {
|
|
|
uuid = initUUID(vid);
|
|
|
// TODO 写入平台库表:platformPhone关联的uuid
|
|
|
LOGGER.info("getLoginQRCode,uuid: {}", uuid);
|
|
|
- System.out.println("getLoginQRCode,uuid: " + uuid);
|
|
|
setCallback(uuid);
|
|
|
if (uuid != null) {
|
|
|
String url = qywxConfig.getDomain() + qywxConfig.getPath("login-qrcode");
|
|
@@ -119,7 +118,7 @@ public class QwLoginServiceImpl implements QwLoginService {
|
|
|
private String initUUID(String vid) {
|
|
|
Long userId = LoginUserContext.getUserId();
|
|
|
Map<String, Object> requestBody = new HashMap<>();
|
|
|
- requestBody.put("vid", vid); // Add vid if available,二次登录使用上一次结果
|
|
|
+ requestBody.put("vid", ""); // Add vid if available,二次登录使用上一次结果
|
|
|
requestBody.put("ip", ""); // Add proxy IP if available
|
|
|
requestBody.put("port", ""); // Add proxy port if available
|
|
|
requestBody.put("proxyType", ""); // Add proxy type if available
|
|
@@ -129,6 +128,8 @@ public class QwLoginServiceImpl implements QwLoginService {
|
|
|
requestBody.put("deverType", "ipad"); // Default device type
|
|
|
// Convert the request body to JSON string
|
|
|
String params = JSON.toJSONString(requestBody);
|
|
|
+ System.out.println("initUUID,params: " + params);
|
|
|
+
|
|
|
String url = qywxConfig.getDomain() + qywxConfig.getPath("init-uuid");
|
|
|
Optional<String> response = httpPoolClientDefault.postJson(url, params);
|
|
|
// 直接解析 JSON
|