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

现金红包出现了500错误,跟进显示http_error:true #1016

Closed
callmejea opened this issue Nov 8, 2017 · 2 comments
Closed

现金红包出现了500错误,跟进显示http_error:true #1016

callmejea opened this issue Nov 8, 2017 · 2 comments

Comments

@callmejea
Copy link

callmejea commented Nov 8, 2017

我用的环境

PHP 版本:7.0
overtrue/wechat 版本:最新
是否使用了框架?框架名称:phalcon

问题及现象

发送微信商户红包时:报了错误500, 跟进到 guzzle/src/Client.php function request中出现了错误,
代码如下:

$luckyMoneyData = [
            'mch_billno' => $id,
            'send_name' => $name,
            're_openid' => $openid,
            'total_num' => 1,  //固定为1,可不传
            'total_amount' => $money,  //单位为分,不小于100
            'wishing' => $wishing,
            'act_name' => $actName,
            'remark' => $remark,
            'client_ip'        => '',  //可不传,不传则由 SDK 取当前客户端 IP
        ];
        $result = $this->lucky_money->sendNormal($luckyMoneyData);

log中只有正常的log,没有任何错误信息, 只有正常的debug log
[2017-11-09 00:04:22] easywechat.DEBUG: Current config: {
"debug": true,
"app_id": "***97e9c",
"secret": "***d4e6a",
"token": "asdf",
"aes_key": "asdf",
"log": {
"level": "debug",
"permission": 511,
"file": "/tmp/easywechat.log"
},
"oauth": {
"scopes": [
"snsapi_userinfo"
],
"callback": "https://api.asdf.com/wechat/wechat/callback"
},
"payment": {
"merchant_id": "1483117672",
"key": "asdf",
"cert_path": "/dasdfient_cert.pem",
"key_path": "/asdf/apiclient_key.pem"
},
"guzzle": {
"timeout": 3
}
},
[2017-11-09 00:04:22] easywechat.DEBUG: Request: POST https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack {
"timeout": 3,
"cert": "asdf",
"ssl_key": "asdf",
"handler": {},
"synchronous": true,
"allow_redirects": {
"max": 5,
"protocols": [
"http",
"https"
],
"strict": false,
"referer": false,
"track_redirects": false
},
"http_errors": true,
"decode_content": true,
"verify": true,
"cookies": false
}

[2017-11-09 00:04:22] easywechat.DEBUG: Client Request: {"url":"https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack","method":"POST","options":{"timeout":3,"body":"<mch_billno>455504</mch_billno><send_name></send_name><re_openid></re_openid><total_num>1</total_num><total_amount>100</total_amount><act_name></act_name><client_ip></client_ip><mch_id>123123</mch_id><nonce_str></nonce_str>","cert":"/asdfasdf.pem","ssl_key":"/asdfasdf.pem"}} []

@overtrue
Copy link
Collaborator

overtrue commented Nov 9, 2017

500 错误没有日志 ???你怎么配置的环境?

@callmejea
Copy link
Author

sorry, 找着了, 昨天晚上太累, 没找到

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