|
@@ -38,9 +38,9 @@ class WeixinAuthService extends AxiosService {
|
|
|
async fetchUnionID(openid) {
|
|
|
// TODO:参数检查和默认参数处理
|
|
|
assert(openid);
|
|
|
- const appid = 'wxdf3ed83c095be97a';
|
|
|
+ const appid = 'wx6db5d25b3e7cfc14';
|
|
|
const grant_type = 'client_credential';
|
|
|
- const secret = '748df7c2a75077a79ae0c971b1638244';
|
|
|
+ const secret = 'c4e3c4f74f5c1583e3b6a8ae77925d71';
|
|
|
// TODO: 获得用户信息
|
|
|
const url = 'http://wx.cc-lotus.info/api.weixin.qq.com/cgi-bin/token?appid=' + appid + '&grant_type=' + grant_type + '&secret=' + secret;
|
|
|
const res = await this.ctx.curl(url, {
|