Commit a600a3ba by shuaizhihui

切换版本

parent 84971f80
......@@ -36,7 +36,7 @@ App({
console.log(err);
}
})
wx.setStorageSync('appId', 'wx7d7fbc0e6746baf5');
wx.setStorageSync('appId', 'wx788dccacb6777ca3');
wx.setKeepScreenOn({
keepScreenOn: true
});
......
......@@ -111,7 +111,7 @@ Component({
wxGetUserInfo(){
wx.login({
success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', {
API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code
}, function(res) {
if(res.code == 200){
......
......@@ -45,7 +45,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.17.0",
"appid": "wx7d7fbc0e6746baf5",
"appid": "wx788dccacb6777ca3",
"projectname": "小奔体育",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
......
......@@ -225,7 +225,7 @@ Page({
}
wx.login({
success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', {
API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code
}, function(res) {
API.getData('/px/user/getUserInfo', { }, function (ress) {
......
......@@ -31,7 +31,7 @@ Page({
})
wx.login({
success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', {
API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code
}, function(res) {
wx.hideLoading();
......@@ -94,7 +94,7 @@ Page({
wx.showLoading({title: '登录中',})
postData.encryptedData = e.detail.encryptedData;
postData.iv = e.detail.iv;
postData.appId = 'wx7d7fbc0e6746baf5';
postData.appId = 'wx788dccacb6777ca3';
var _this = this;
if (e.detail.errMsg == 'getPhoneNumber:ok'){
......@@ -108,7 +108,7 @@ Page({
wxLogin(){
wx.login({
success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/getOpenId', { code: res.code }, function (res) {
API.getData('/wx/user/wx788dccacb6777ca3/getOpenId', { code: res.code }, function (res) {
postData.sessionKey = res.data.sessionKey;
postData.openId = res.data.openId;
}, function () {
......
......@@ -56,7 +56,7 @@ Page({
wx.login({
success: res => {
console.log('1');
API.getData('/wx/user/wx7d7fbc0e6746baf5/getOpenId', {
API.getData('/wx/user/wx788dccacb6777ca3/getOpenId', {
code: res.code
}, function (res) {
console.log('登录',res)
......@@ -102,7 +102,7 @@ Page({
phone: _this.data.phoneNum,
smsCode: _this.data.smsCode,
openId: openId,
appId: 'wx7d7fbc0e6746baf5',
appId: 'wx788dccacb6777ca3',
},
function(res) {
console.log(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment