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 版本:5.6 overtrue/wechat 版本:3.0 Nginx: 1.9
使用sendNormal($params);sendGroup($params)发送红包时,报Undefined index: HTTP_CLIENT_IP 当填写$params['client_ip']='127.0.0.1'时,报签名错误! 不填写client_ip,报报Undefined index: HTTP_CLIENT_IP
sendNormal($params);sendGroup($params)
Undefined index: HTTP_CLIENT_IP
$params['client_ip']='127.0.0.1'
用send($params, API::TYPE_TYPE_NORMAL);暂时解决!
send($params, API::TYPE_TYPE_NORMAL);
The text was updated successfully, but these errors were encountered:
@tianyong90
Sorry, something went wrong.
sendGroup时也报?不应该啊,前几天这个方法里设置IP的部分已经删除了。
@tianyong90 https://github.com/overtrue/wechat/blob/master/src/Payment/LuckyMoney/API.php#L132
@chechao 请加 SDK 交流群并在群中@田较瘦
3267f98
Merge pull request #333 from tianyong90/master
7425275
Add a helper to get correct client ip address. fixed #316
No branches or pull requests
我用的环境
PHP 版本:5.6
overtrue/wechat 版本:3.0
Nginx: 1.9
问题及现象
使用
sendNormal($params);sendGroup($params)
发送红包时,报Undefined index: HTTP_CLIENT_IP
当填写
$params['client_ip']='127.0.0.1'
时,报签名错误!不填写client_ip,报报Undefined index: HTTP_CLIENT_IP
用
send($params, API::TYPE_TYPE_NORMAL);
暂时解决!The text was updated successfully, but these errors were encountered: