liuyu 5 éve
szülő
commit
25b4540faa
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      app/controller/weixin.js

+ 2 - 1
app/controller/weixin.js

@@ -105,7 +105,8 @@ class WeixinController extends Controller {
 
   // GET 用户授权内部测试接口
   async authTest() {
-    const { redirect_uri, type, uid, qrcode, openid } = this.ctx.query;
+    const { redirect_uri, type, uid, qrcode } = this.ctx.query;
+    const openid = '12345';
     this.ctx.logger.debug(`[auth-test] reditect_uri - ${redirect_uri}, openid - ${openid}`);
     assert(redirect_uri, '回调地址不能为空');
     assert(openid, 'openid不能为空');