@@ -24,7 +24,7 @@ App({
client: {},
// 微信openid获取基本设置
wx_config: {
- config: 'friendShoolApp'
+ config: 'ballApp'
}
},
...httpUtil,
@@ -58,6 +58,7 @@ Page({
if (res.data) wx.redirectTo({ url: '/pagesHome/home/index' })
async fail(err) {
+ wx.redirectTo({ url: '/pagesHome/home/index' })
const aee = await app.$api('token/app', 'GET', { js_code: js_code, config: wx_config.config });
if (aee.errcode == '0') {
wx.setStorage({ key: "openid", data: aee.data.openid })