- errMsg:"getShareInfo:fail system apperror"
- 期望流程如下:用户从群分享的签到小程序进入小程序,得到openGid,进而获得群名称,现在是wx.getShareInfo 会报错
- app.js
onShow: function(options) {
let that = this
if (options && options.scene == 1044) {
that.globalData.shareTicket = options.shareTicket
wx.getShareInfo({
shareTicket: that.globalData.shareTicket,
success: function (res) {
console.log('app.js--getShareInfo---getShareTiket-->' + JSON.stringify(res))
let js_encryptedData = res.encryptedData
let js_iv = res.iv
wx.login({
success: function (res) {
let js_code = res.code
console.log('code-->' + js_code)
var parms = {
code: js_code,
encryptedData: js_encryptedData,
iv: js_iv
}
util.ajaxRequest(api.getSgininPageAndOpenGidUrl, "post", parms, '获取群名称', function (res) {
that.globalData.openGid = res.data.openGId
console.log('app.js---getShareTiket---openGid' + that.globalData.openGid)
typeof cb == "function" && cb(that.globalData)
})
}
})
},
fail: function (res) {
console.log(res)
},
complete: function (res) {
console.log(res)
}
})
}
console.log('app.js---onShow=--->' + JSON.stringify(options))
},
已解决:需要从正式的appid以及需要用真机才行,开发工具一直报这样的错
已解决:需要从正式的appid以及需要用真机才行,开发工具一直报这样的错