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

支付重复回调问题 #504

Closed
tomhaoye opened this issue Sep 14, 2016 · 3 comments
Closed

支付重复回调问题 #504

tomhaoye opened this issue Sep 14, 2016 · 3 comments

Comments

@tomhaoye
Copy link

说明环境情况

  • 平台:linux
  • 软件与版本:nginx 1.9\ PHP 5.6\ easywechat 3.0

回调部分的代码

$response = $app->payment->handleNotify(function($notify, $successful){
    return 具体业务流程返回值;
});
$response->send();

问题

测试环境回调没有问题。。。而生产环境下业务能顺利完成并且return true,微信还是会重复回调。测试和生产环境下日志都记录返回包含:

<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>

因为做了判断,即使重复回调也没有影响业务,但总不能一直这样吧。。。
但是具体是哪的问题,请大神们给点意见。

@overtrue
Copy link
Collaborator

@tomhaoye 打个电话给微信,不要再回调了,也许会解决。

@tianyong90
Copy link
Contributor

部分框架最后在最后 exit 下,比如那啥 ThinkPHP ……

@tomhaoye
Copy link
Author

额,但是测试环境没有问题。。。

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

3 participants