lrf402788946 4 jaren geleden
bovenliggende
commit
c385c3ed7a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

@@ -203,7 +203,7 @@ class WeixinController extends Controller {
   // GET 签到小程序请求用户
   async appAuth() {
     const { js_code, login = true } = this.ctx.query;
-    console.warn(`query=>${this.ctx.query}`);
+    console.warn(`query=>${JSON.stringify(this.ctx.query)}`);
     console.warn(`js_code=>${js_code}`);
     const appopenid = await this.ctx.service.weixin.appAuth(js_code);
     if (!login) this.ctx.ok(appopenid);