lrf402788946 4 éve
szülő
commit
5020d36270
1 módosított fájl, 2 hozzáadás és 2 törlés
  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)}`);