|
返回200错误,get appid error代码:account.authorize({
type: 'token',
scope: "scope.baseProfile",
success: function (data) {
console.log(`handling success: ${data.code}`)
account.getProfile({
token: data.accessToken,
success: function (data) {
prompt.showToast({
message: 'handling success: openid:' + data.openid + ",id:" + data.openid + ",unionid:" + data.unionid + ",nickname:" + data.nickname + ",avatar:" + data.avatar,
duration: 1
})
},
fail: function (data, code) {
prompt.showToast({
message: `getProfile handling fail, code = ${code}`,
duration: 1
})
}
})
},
fail: function (data, code) {
prompt.showToast({
message: `authorize handling fail, code = ${code}`,
duration: 1
})
}
}) |
|