@@ -197,7 +197,7 @@ App({ | |||
this.globalData.mobileData = null; | |||
this.wxRequest(this.globalData.urlRoot + "userInfo/getUserPhoneNumber", { encryptedData: encryptedData, iv: iv }, res => { | |||
if (res.code == 200) { | |||
if (res.data.decodeData && res.data.decodeData.phoneNumber) { | |||
if (res.data && res.data.decodeData) { | |||
wx.setStorageSync('userMobile', res.data.decodeData.phoneNumber); | |||
this.globalData.userMobile = res.data.decodeData.phoneNumber; | |||
} |
@@ -120,7 +120,6 @@ Page({ | |||
if (e.detail.errMsg=='getPhoneNumber:ok'){ | |||
app.getMobile(e.detail.encryptedData, e.detail.iv,res=>{ | |||
if (res.code == 200) { | |||
res.data=null; | |||
if(res.data){ | |||
this.data.subscribeData.mobile = res.data.decodeData.phoneNumber; | |||
this.setData({ |