|
@@ -151,7 +151,7 @@ class Guard
|
|
|
'Protocal' => $this->request->server->get('SERVER_PROTOCOL'),
|
|
'Protocal' => $this->request->server->get('SERVER_PROTOCOL'),
|
|
|
'Content' => $this->request->getContent(),
|
|
'Content' => $this->request->getContent(),
|
|
|
]);
|
|
]);
|
|
|
-
|
|
|
|
|
|
|
+ @file_put_contents('quanju3.txt',json_encode($this->token)."-测试9\r\n",8);
|
|
|
$this->validate($this->token);
|
|
$this->validate($this->token);
|
|
|
|
|
|
|
|
if ($str = $this->request->get('echostr')) {
|
|
if ($str = $this->request->get('echostr')) {
|
|
@@ -183,8 +183,9 @@ class Guard
|
|
|
$this->request->get('timestamp'),
|
|
$this->request->get('timestamp'),
|
|
|
$this->request->get('nonce'),
|
|
$this->request->get('nonce'),
|
|
|
];
|
|
];
|
|
|
-
|
|
|
|
|
|
|
+ @file_put_contents('quanju3.txt',json_encode($params)."-测试10\r\n",8);
|
|
|
if (!$this->debug && $this->request->get('signature') !== $this->signature($params)) {
|
|
if (!$this->debug && $this->request->get('signature') !== $this->signature($params)) {
|
|
|
|
|
+ @file_put_contents('quanju3.txt',"-测试11\r\n",8);
|
|
|
throw new FaultException('Invalid request signature.', 400);
|
|
throw new FaultException('Invalid request signature.', 400);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|