get_brand_wcpay_request:fail

简介: 最近看weixin_guide项目做微信支付。 后台一切正常,前端报错,get_brand_wcpay_request:fail。

最近看weixin_guide项目做微信支付。
后台一切正常,前端报错,get_brand_wcpay_request:fail。
打印了一下返回的res的全部信息,是url目录未授权,于是在公众号后台添加相关路径后支付成功了。
这里写图片描述

这里要小小吐槽一下weixin_guide 项目的返回值。

    layer.msg("支付失败"+res.err_msg, {shift: 6});

根据这个err_msg是很难定位问题的,新手要是不懂就很容易被坑,建议改成err_desc或者返回完整错误信息,避免新手走弯路。

目录
相关文章
|
9月前
ES集群报错 failed to send join request to maste
ES集群报错 failed to send join request to maste
112 0
|
9月前
|
容器
【问题处理】Error response from daemon: Pool overlaps with other one on this address space
Error response from daemon: Pool overlaps with other one on this address space
159 0
|
4天前
|
API Android开发 开发者
failed to set system property error code: 0x18
failed to set system property error code: 0x18
18 1
|
7月前
|
小程序 API 开发者
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
253 0
【异常解决】“errcode“:47003,“errmsg“:“argument invalid! data.date4.value invalid rid:xxxxxx
|
Java 应用服务中间件 Linux
SpringBoot - Processing of multipart/form-data request failed. Unexpected EOF read on the socket
SpringBoot - Processing of multipart/form-data request failed. Unexpected EOF read on the socket
1298 0
SpringBoot - Processing of multipart/form-data request failed. Unexpected EOF read on the socket
|
应用服务中间件 nginx
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
[error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
69 0
HttpMessageNotReadableException: Required request body is missing: xxx.controller.login(xxx)...
HttpMessageNotReadableException: Required request body is missing: xxx.controller.login(xxx)...
HttpMessageNotReadableException: Required request body is missing: xxx.controller.login(xxx)...
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404). No message availab
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404). No message availab
149 0
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception
97 0