ThinkPHP5
ThinkPHP5 copied to clipboard
你好,关于支付宝回调的相关问题
在回调方法中,这2行代码如何使用呢?
$xml = $GLOBALS['HTTP_RAW_POST_DATA']; $ret = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
已经解决了,感谢开源,我使用verifyNotify验证回调结果就行了。