diff --git a/app.js b/app.js index aecfde0..9346f28 100644 --- a/app.js +++ b/app.js @@ -38,7 +38,7 @@ App({ // 获取前端配置文件 commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest112? true : false; + data.isTest = data.isTest113? true : false; data.indexSeason = null this.globalData.configJson = data }).then(() => { diff --git a/pages/order/pay/index.js b/pages/order/pay/index.js index a278f65..af07a1f 100644 --- a/pages/order/pay/index.js +++ b/pages/order/pay/index.js @@ -64,8 +64,20 @@ Page({ this.setData({ id:options.id }) + this.getUserInfo() }, + + getUserInfo () { + commonApi.user_post("uservice/user/getMyInfo",{}).then(res => { + if (res && res.data) { + wx.setStorageSync('jstrip_userid', res.data.id) + wx.setStorageSync('jstrip_token', res.data.token) + wx.setStorageSync('jstrip_userInfo', res.data) + } + }) + }, + daojishi:function(time){ let now = new Date().getTime(); if(now>time){ diff --git a/project.private.config.json b/project.private.config.json index 3034e43..5822978 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -6,6 +6,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/order/pay/index", + "pathName": "pages/order/pay/index", + "query": "id=28182508211650158717&token=de4306f5-7f80-4a0f-a7ae-af63cf089fa4", + "launchMode": "default", + "scene": null + }, { "name": "pages/pbService/web/index", "pathName": "pages/pbService/web/index",