正式环境中 wx.login 中成功回调里不走方法,这是为什么呢?

小程序 文章 2020-08-11 10:41 1316 0 全屏看文

AI助手支持GPT4.0

正式环境中 wx.login 中成功回调里不走方法,这是为什么呢?In the formal environment, there is no method in the success callback of wx.login. Why?

正式环境中 wx.login 中成功回调里不走方法,这是为什么呢?

代码如图:

框起来的两个方法都走了,jscode也弹框了

但是就是.wxpay()不走

模拟器和真机debug都没问题,代码上传到体验版本就不走了

这是什么问题呢?


The code is as shown in the figure: the two methods of framing have gone, and jscode has also popped up. However, if. Wxpay() doesn't work, neither the simulator nor the real machine debug will work. If the code is uploaded to the experience version, it won't go away. What's the problem?

回答:

จุ๊บ:

你为啥 不在wx.login 成功回调直接调用wxpay方法呢?非要搞个异步呢?

Distance:

wxpay 是咋写的

鸭梨:
王志鹏:

函数截个图 看看代码

鸭梨:
鸭梨:
王志鹏:这两个有没有弹出啊
鸭梨:没有啊

-EOF-

AI助手支持GPT4.0