|
@@ -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不能为空');
|