提交 bd7be1a7 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复某些情况下登录报参数错误的问题

上级 1250b9f6
...@@ -60,8 +60,7 @@ export default async function() { ...@@ -60,8 +60,7 @@ export default async function() {
console.log('剪切板内容:'+res.data); console.log('剪切板内容:'+res.data);
if (res.data.slice(0, 18) == 'uniInvitationCode:') { if (res.data.slice(0, 18) == 'uniInvitationCode:') {
let uniInvitationCode = res.data.slice(18, 38) let uniInvitationCode = res.data.slice(18, 38)
console.log('当前用户是其他用户推荐下载的,推荐者的code是:' + console.log('当前用户是其他用户推荐下载的,推荐者的code是:' + uniInvitationCode);
uniInvitationCode);
// uni.showModal({ // uni.showModal({
// content: '当前用户是其他用户推荐下载的,推荐者的code是:'+uniInvitationCode, // content: '当前用户是其他用户推荐下载的,推荐者的code是:'+uniInvitationCode,
// showCancel: false // showCancel: false
...@@ -69,12 +68,12 @@ export default async function() { ...@@ -69,12 +68,12 @@ export default async function() {
callBack(uniInvitationCode) callBack(uniInvitationCode)
//当前用户是其他用户推荐下载的。这里登记他的推荐者id 为当前用户的myInviteCode。判断如果是注册 //当前用户是其他用户推荐下载的。这里登记他的推荐者id 为当前用户的myInviteCode。判断如果是注册
} else { } else {
callBack(false) callBack()
} }
}, },
fail() { fail() {
console.log('error--'); console.log('error--');
callBack(false) callBack()
}, },
complete() { complete() {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册