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

使用sendNormal(),sendGroup()发送红包时,报Undefined index: HTTP_CLIENT_IP #316

Closed
chechao opened this issue Mar 4, 2016 · 4 comments

Comments

@chechao
Copy link

chechao commented Mar 4, 2016

我用的环境

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);暂时解决!

@overtrue
Copy link
Collaborator

overtrue commented Mar 4, 2016

@tianyong90

@tianyong90
Copy link
Contributor

sendGroup时也报?不应该啊,前几天这个方法里设置IP的部分已经删除了。

@overtrue
Copy link
Collaborator

overtrue commented Mar 4, 2016

@tianyong90
Copy link
Contributor

@chechao 请加 SDK 交流群并在群中@田较瘦

overtrue added a commit that referenced this issue Mar 14, 2016
Add a helper to get correct client ip address. fixed #316
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