Kaynağa Gözat

数据汇聚

孙永军 2 yıl önce
ebeveyn
işleme
32e2c23c7a

+ 6 - 0
src/main/java/com/sxtvs/open/api/odata/service/OauthService.java

@@ -6,6 +6,7 @@ import com.sxtvs.open.api.odata.dto.wx.WxApiCreatePreAuthCodeRequest;
 import com.sxtvs.open.api.odata.dto.wx.WxApiCreatePreAuthCodeResponse;
 import com.sxtvs.open.api.youmei.service.YoumeiAccountServiceImpl;
 import com.sxtvs.open.core.conf.OauthConfig;
+import com.sxtvs.open.core.sls.AliyunLogger;
 import lombok.SneakyThrows;
 import org.apache.hc.client5.http.fluent.Request;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -27,6 +28,9 @@ public class OauthService {
     @Autowired
     private StringRedisTemplate redisTemplate;
 
+    @Autowired
+    private AliyunLogger logger;
+
     @SneakyThrows
     public String getWeiboUrl() {
         var accessToken = youmeiAccountService.getSxgdAccount().getAccessToken();
@@ -40,6 +44,7 @@ public class OauthService {
         return objectMapper.readTree(body).get("data").get("auth_url").asText();
     }
 
+
     @SneakyThrows
     public WxApiCreatePreAuthCodeResponse createPreAuthCodeResponse() {
         var ticket = redisTemplate.opsForValue().get("WX_TICKET");
@@ -51,6 +56,7 @@ public class OauthService {
                 .execute()
                 .returnContent()
                 .asString(StandardCharsets.UTF_8);
+        logger.info("微信获取preauthcode {}", body);
 
         return objectMapper.readValue(body, WxApiCreatePreAuthCodeResponse.class);
     }

+ 2 - 2
src/main/java/com/sxtvs/open/core/conf/Constant.java

@@ -33,8 +33,8 @@ public class Constant {
     public static String wxClientSecret = "934c2b93115ae6ec8472cf153e584124";
 
 
-    public static String weixinZhiHuiRongMeiAppId = "wx5e1699e1707030ac";
-    public static String weixinZhiHuiRongMeiSecret = "65c4f421f2bba4cd5d7f1219123e0fd9";
+    public static String weixinZhiHuiRongMeiAppId = "wx7040933fd0e4b0e8";
+    public static String weixinZhiHuiRongMeiSecret = "934c2b93115ae6ec8472cf153e584124";
 
     public static String bilibiliClientId = "e79e6fdef9d446d7";
     public static String bilibiliSecret = "70d40a332aa54132a72239efba022450";