Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,支付回调完,res.reply(''); 这个方没效果呢? #8

Closed
beclass opened this issue Jul 24, 2017 · 3 comments
Closed

Comments

@beclass
Copy link

beclass commented Jul 24, 2017

res.reply('success');
res.reply('fail');
都不行,微信还是会不停的回调过来

@befinal
Copy link
Owner

befinal commented Jul 24, 2017

其实直接使用res.end('success')随便回复微信服务器一下就可以, 微信方其实并没有完全按照文档要求的回复格式进行处理. 所以暂时没有对这个进行非常规范的处理, 当前测试没有什么问题, 后期可能会完善一下增加一个res.success()和res.fail()方法来处理.

@befinal
Copy link
Owner

befinal commented Jul 24, 2017

另外建议自己这边对订单进行一个排重的操作处理, 因为就算完全按照微信文档进行回复, 也不能保证微信一个订单真的只发送一次(网络超时等因素), 所以还是需要自己在业务逻辑上进行验证, 避免一个订单被多次处理.

@beclass
Copy link
Author

beclass commented Jul 25, 2017

谢谢指导

@befinal befinal closed this as completed Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants