songxingwei 2 years ago
parent
commit
30c9dd50ef
1 changed files with 3 additions and 3 deletions
  1. 3 3
      vendor/zoujingli/wechat-developer/WeChat/Contracts/BasicWePay.php

+ 3 - 3
vendor/zoujingli/wechat-developer/WeChat/Contracts/BasicWePay.php

@@ -97,10 +97,10 @@ class BasicWePay
     {
         $data = Tools::xml2arr(file_get_contents('php://input'));
         file_put_contents('pay.txt',json_encode($data));
-        if (isset($data['sign']) && $this->getPaySign($data) === $data['sign']) {
+       // if (isset($data['sign']) && $this->getPaySign($data) === $data['sign']) {
             return $data;
-        }
-        throw new InvalidResponseException('Invalid Notify.', '0');
+//        }
+//        throw new InvalidResponseException('Invalid Notify.', '0');
     }
 
     /**