liuyu 5 lat temu
rodzic
commit
9e76baafc8
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      app/controller/weixin.js

+ 1 - 2
app/controller/weixin.js

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