We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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"}} []
The text was updated successfully, but these errors were encountered:
500 错误没有日志 ???你怎么配置的环境?
Sorry, something went wrong.
sorry, 找着了, 昨天晚上太累, 没找到
No branches or pull requests
我用的环境
PHP 版本:7.0
overtrue/wechat 版本:最新
是否使用了框架?框架名称:phalcon
问题及现象
发送微信商户红包时:报了错误500, 跟进到 guzzle/src/Client.php function request中出现了错误,
代码如下:
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"}} []
The text was updated successfully, but these errors were encountered: