浏览代码

优化代码

java110 5 年之前
父节点
当前提交
edd99f2243
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      service-front/src/main/java/com/java110/front/smo/wxLogin/impl/WxLoginSMOImpl.java

+ 2 - 2
service-front/src/main/java/com/java110/front/smo/wxLogin/impl/WxLoginSMOImpl.java

@@ -84,8 +84,8 @@ public class WxLoginSMOImpl extends AppAbstractComponentSMO implements IWxLoginS
         String urlString = "?appid={appId}&secret={secret}&js_code={code}&grant_type={grantType}";
         String urlString = "?appid={appId}&secret={secret}&js_code={code}&grant_type={grantType}";
         String response = outRestTemplate.getForObject(
         String response = outRestTemplate.getForObject(
                 wechatAuthProperties.getSessionHost() + urlString, String.class,
                 wechatAuthProperties.getSessionHost() + urlString, String.class,
-                wechatAuthProperties.getAppId(),
-                wechatAuthProperties.getSecret(),
+                smallWeChatDto.getAppId(),
+                smallWeChatDto.getAppSecret(),
                 code,
                 code,
                 wechatAuthProperties.getGrantType());
                 wechatAuthProperties.getGrantType());