tencentyun / wafer2-startup

Wafer - 腾讯云下一代小程序综合解决方案
1.02k stars 225 forks source link

发起登录请求,返回Error: 响应错误,{"code":-1,"error":"ERR_REQUEST_PARAM"} #168

Open SnowdropK opened 5 years ago

SnowdropK commented 5 years ago

<button v-else open-type="getUserInfo" lang="zh_CN" class='btn' @getuserinfo="login">点击登录

loginSuccess (res) { showSuccess('登录成功') wx.setStorageSync('userinfo', res) this.userinfo = res }, login () { wx.showToast({ title: '登录中', icon: 'loading' }) qcloud.setLoginUrl(config.loginUrl) const session = qcloud.Session.get() if (session) { qcloud.loginWithCode({ success: res => { console.log('没过期的登录', res) this.loginSuccess(res) }, fail: err => { console.error(err) } }) } else { qcloud.login({ success: res => { console.log('登录成功', res) this.loginSuccess(res) }, fail: err => { console.error(err) } }) } }

Andy1621 commented 5 years ago

加一,我也遇到了...用以前创建过腾讯云项目的APPID能正常登陆,新注册的APPID不行,很玄

jas0ncn commented 5 years ago

https://github.com/tencentyun/wafer2-client-sdk#%E7%99%BB%E5%BD%95

SnowdropK commented 5 years ago

https://github.com/tencentyun/wafer2-client-sdk#%E7%99%BB%E5%BD%95

这个例子我试过了,报的同样的错误,有可能和楼上那位老铁一样,有可能是因为腾讯云刚刚开通

jas0ncn commented 5 years ago

https://github.com/tencentyun/wafer2-quickstart/issues/13 参考一下这个

WLyKan commented 4 years ago

tencentyun/wafer2-quickstart#13 参考一下这个

为啥不改文档呢