wuchao před 4 měsíci
rodič
revize
668f927de6

+ 4 - 1
renren-admin/src/main/java/io/renren/modules/qyh/service/impl/ApiAuthServiceImpl.java

@@ -28,6 +28,7 @@ import io.renren.modules.qmjz.service.ScoreStuService;
 import io.renren.modules.qmjz.service.TaskManageService;
 import io.renren.modules.qmjz.utils.RestUtil;
 import io.renren.modules.wechat.config.WxMaConfiguration;
+import lombok.extern.slf4j.Slf4j;
 import me.chanjar.weixin.common.error.WxErrorException;
 import org.apache.commons.collections.MapUtils;
 import org.apache.commons.lang.StringUtils;
@@ -68,6 +69,7 @@ import io.renren.modules.qyh.service.TaskConfigService;
  * @author lijiahe
  * @date 2022-08-15 14:08:08
  */
+@Slf4j
 @Service("apiAuthService")
 public class ApiAuthServiceImpl implements ApiAuthService {
 
@@ -340,6 +342,7 @@ public class ApiAuthServiceImpl implements ApiAuthService {
         Map<String, String> paramMap = new HashMap<>(2);
         paramMap.put("mobile", mobile);
         paramMap.put("openId", openId);
+
         try {
             String resultStr = cn.hutool.http.HttpUtil.post(yicProperties.getServerUrl() + yicProperties.getLoginUrl(), JSONObject.toJSONString(paramMap));
             if (ObjectUtil.isNotNull(resultStr)) {
@@ -349,7 +352,7 @@ public class ApiAuthServiceImpl implements ApiAuthService {
                 }
             }
         } catch (Exception e) {
-            System.out.println("青创赛登录注册失败:" + e);
+            log.error("青创赛登录注册失败:" + e);
             return null;
         }
         return null;

+ 2 - 1
renren-admin/src/main/resources/application-prod.yml

@@ -65,5 +65,6 @@ spring:
         max-idle: 10      # 连接池中的最大空闲连接
         min-idle: 5       # 连接池中的最小空闲连接
 
+# 青创赛
 yic:
-  loginUrl: http://192.168.0.101:8203/third/user/authorization/register
+  serverUrl: http://192.168.0.101:8203