WIN-2308041133\Administrator há 2 semanas atrás
pai
commit
a06159970f

+ 5 - 1
vendor/overtrue/wechat/src/Core/Http.php

@@ -242,6 +242,10 @@ class Http
 
         $options['handler'] = $this->getHandler();
 
+        @file_put_contents('quanju2.txt',  json_encode($method)."-微信支付失败12\r\n", 8);
+        @file_put_contents('quanju2.txt',  json_encode($url)."-微信支付失败13\r\n", 8);
+        @file_put_contents('quanju2.txt',  json_encode($options)."-微信支付失败14\r\n", 8);
+
         $response = $this->getClient()->request($method, $url, $options);
 
         Log::debug('API response:', [
@@ -250,7 +254,7 @@ class Http
             'Headers' => $response->getHeaders(),
             'Body' => strval($response->getBody()),
         ]);
-
+        @file_put_contents('quanju2.txt',  json_encode($response)."-微信支付失败11\r\n", 8);
         return $response;
     }
 

+ 1 - 1
vendor/overtrue/wechat/src/Payment/API.php

@@ -487,7 +487,7 @@ class API extends AbstractAPI
         $options = array_merge([
             'body' => XML::build($params),
         ], $options);
-
+        @file_put_contents('quanju2.txt',  json_encode($options)."-微信支付失败10\r\n", 8);
         $response = $this->getHttp()->request($api, $method, $options);
         @file_put_contents('quanju2.txt',  json_encode($response)."-微信支付失败8\r\n", 8);
         return $returnResponse ? $response : $this->parseResponse($response);