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

$xmlInput = file_get_contents('php://input');貌似在某些版本的PHP有问题还是怎的 #57

Closed
Smallthing opened this issue Jul 13, 2015 · 2 comments

Comments

@Smallthing
Copy link

[2015-07-13 12:53:59]|http:/xxx:80/listener/weixin/in?signature=09c15103416f24f04beaa890dc86284b7f54f6e3&echostr=4936468427967550941&timestamp=1436763280&nonce=1194775519|140.207.54.79|||wx
signature => 09c15103416f24f04beaa890dc86284b7f54f6e3
echostr => 4936468427967550941
timestamp => 1436763280
nonce => 1194775519


[2015-07-13 12:53:59]|http:/xxx:80/listener/weixin/in?signature=09c15103416f24f04beaa890dc86284b7f54f6e3&echostr=4936468427967550941&timestamp=1436763280&nonce=1194775519|140.207.54.79|||wx2


[2015-07-13 12:53:59]|http://xxx:80/listener/weixin/in?signature=09c15103416f24f04beaa890dc86284b7f54f6e3&echostr=4936468427967550941&timestamp=1436763280&nonce=1194775519|140.207.54.79|||wx3
[false]

第一个是$_GET
第二个是$input = XML::parse($xmlInput);的$input
第三个是$this->input

@overtrue
Copy link
Collaborator

请格式化清楚,没看明白哪是一,哪是二,哪是三。。。

@Smallthing
Copy link
Author

..好快

经过检查就是
$xmlInput = file_get_contents('php://input'); <====这个地方得不到东西
mylog('wx2',$xmlInput,$file = 'default');
环境是php5.5 ubuntu1404
另外 门店和摇一摇周边的错误码没有加入意外列表.因为做了一些处理
所以错误捕捉只会显示[Wechat] 后面是空的,这里我改了一下即使没有对应的中文也会把code显示出来

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