| xqd
@@ -70,8 +70,33 @@ class AuthController extends Controller
|
|
|
return view('web.auth.bind');
|
|
|
}
|
|
|
|
|
|
+ public function notifyAccount(Request $request)
|
|
|
+ {
|
|
|
+ $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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function welcome()
|
|
|
{
|
|
|
return view('welcome');
|
|
|
}
|
|
|
+
|
|
|
+//用于回复用户消息
|
|
|
+function responseMsg(){
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|