- 微信公众号开发配置url提示token验证失败?
[图片] 项目发布到服务器运行ok, 配置url失败, 服务器的日志消息显示已经微信的get请求已经进入并成功返回了 “echostr”的值 但是依然显示token配置失败 操作时间在2019年9月11日18点30
2019-09-12 - 实机IOS环境下,在await后调用云函数没回调
在开发工具下正常,在手机上预览云函数没回调,经检验云函数已经在云端执行并返回,success, complete, fail都没有执行 代码片断 [代码]timeout() {[代码][代码] [代码][代码]return[代码] [代码]new[代码] [代码]Promise((resolve, reject) => {[代码][代码] [代码][代码]setTimeout(resolve({aa:1}), 1000)[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码]async testawait(e){[代码][代码] [代码][代码]let timeout = await [代码][代码]this[代码][代码].timeout()[代码][代码] [代码][代码]console.log([代码][代码]'call timeout'[代码][代码], timeout)[代码][代码] [代码][代码]wx.cloud.callFunction({[代码][代码] [代码][代码]name: [代码][代码]'test'[代码][代码],[代码][代码] [代码][代码]success: (res) => { console.log([代码][代码]'success'[代码][代码], res) },[代码][代码] [代码][代码]complete: (res) => { console.log([代码][代码]'complete'[代码][代码], res) },[代码][代码] [代码][代码]fail: (err) => { console.log([代码][代码]'fail'[代码][代码], err) }[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码] 也试过这样,第二个log 整 个没出来, 同样开发工具下正常,真手出事 [代码]timeout() {[代码][代码] [代码][代码]return[代码] [代码]new[代码] [代码]Promise((resolve, reject) => {[代码][代码] [代码][代码]setTimeout(resolve({aa:1}), 1000)[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码]async testawait(e){[代码][代码] [代码][代码]let timeout = await [代码][代码]this[代码][代码].timeout()[代码][代码] [代码][代码]console.log([代码][代码]'call timeout'[代码][代码], timeout)[代码][代码] [代码][代码]let data=await wx.cloud.callFunction({[代码][代码] [代码][代码]name: [代码][代码]'test'[代码][代码] [代码][代码]})[代码][代码]console.log([代码][代码]'data'[代码][代码], data)[代码][代码] [代码][代码]},[代码]
2019-04-25