小程序支付真机调试无法调通接口?不报错,本地测试可以通过

小程序 文章 2020-08-07 15:01 1564 0 全屏看文

AI助手支持GPT4.0

小程序支付真机调试无法调通接口?不报错,本地测试可以通过Can't call the interface when the Mini Program pays on the real machine? No error, local test can pass

小程序支付真机调试无法调通接口?不报错,本地测试可以通过

小程序支付真机调试无法调通接口?不报错,本地测试可以通过?

Small program payment real machine debugging can not call the interface? If no error is reported, can the local test pass?

回答:

维百特:

配置下request域名

ctzl:

域名配置了么

李鲜森:没有,但是真机调试前几次都可以,后面就出现不能调用接口的问题了
ctzl:没有配置,打开不效验域名
宋佳耀:

检查一下 request安全域名设置好了没

李鲜森:没有,但是真机调试前几次都可以,后面就出现不能调用接口的问题了
宋佳耀:真机上 利用vconsole打印一下wx.requestPayment()的那坨参数看看有没有什么异常?

-EOF-

AI助手支持GPT4.0