| xqd
@@ -73,21 +73,21 @@ class AuthController extends Controller
|
|
|
public function notifyAccount(Request $request)
|
|
|
{
|
|
|
/**/
|
|
|
-
|
|
|
- \Log::info("111");$this->checkSignature();
|
|
|
- $postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
|
|
|
- if (!empty($postStr)) {
|
|
|
- $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
|
|
|
- $fromUsername = $postObj->FromUserName;
|
|
|
- $toUsername = $postObj->ToUserName;
|
|
|
- $MsgT = $postObj->MsgType;
|
|
|
- $time = time();
|
|
|
- \Log::info($postObj);
|
|
|
- //如果用户发的text类型
|
|
|
- } else {
|
|
|
- echo "";
|
|
|
- exit;
|
|
|
- }
|
|
|
+ \Log::info("111");
|
|
|
+ $postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
|
|
|
+ if (!empty($postStr)) {
|
|
|
+ $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
|
|
|
+ $fromUsername = $postObj->FromUserName;
|
|
|
+ $toUsername = $postObj->ToUserName;
|
|
|
+ $MsgT = $postObj->MsgType;
|
|
|
+ $time = time();
|
|
|
+ \Log::info($postObj);
|
|
|
+ //如果用户发的text类型
|
|
|
+ } else {
|
|
|
+ echo "";
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ $this->checkSignature();
|
|
|
}
|
|
|
|
|
|
|