liuyu 4 jaren geleden
bovenliggende
commit
d1eb879337
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      app/controller/weixin.js

+ 2 - 2
app/controller/weixin.js

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