lrf402788946 4 년 전
부모
커밋
5020d36270
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/service/weixin.js

+ 2 - 2
app/service/weixin.js

@@ -33,12 +33,12 @@ class WeixinAuthService extends Service {
         },
         dataType: 'json',
       });
-      if (result) {
+        console.log(result);
+        if (result) {
         // console.log(result);
         const val = JSON.stringify(result.data);
         await this.app.redis.set(key, val, 'EX', 7200);
         data.access_token = result.data.access_token;
-        console.log(result);
       }
     }
     console.log(`data=>${JSON.stringify(data)}`);