WIN-2308041133\Administrator 1 ماه پیش
والد
کامیت
fc85f266eb
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      vendor/overtrue/wechat/src/Server/Guard.php

+ 3 - 2
vendor/overtrue/wechat/src/Server/Guard.php

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