cqp il y a 3 mois
Parent
commit
4fdb31595d
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      app/Service/U8ServerService.php

+ 3 - 3
app/Service/U8ServerService.php

@@ -226,7 +226,7 @@ class U8ServerService extends Service
             ];
 
             file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
-            $return = $this->post_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
+            $return = $this->post_u8_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
             file_put_contents('record_purchase.txt',"返回结果:" . json_encode($return). PHP_EOL,8);
 
             //剔除数据
@@ -368,7 +368,7 @@ class U8ServerService extends Service
             ];
 
             file_put_contents('record_purchase.txt',"请求参数:" . json_encode($post) . PHP_EOL,8);
-            $return = $this->post_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
+            $return = $this->post_u8_helper($this->u8_api,json_encode($post), ['Content-Type:application/json']);
             file_put_contents('record_purchase.txt',"返回结果:" . json_encode($return). PHP_EOL,8);
 
             //剔除数据
@@ -663,7 +663,7 @@ class U8ServerService extends Service
         return $return;
     }
 
-    public function post_helper($url, $data, $header = [], $timeout = 20){
+    public function post_u8_helper($url, $data, $header = [], $timeout = 40){
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $url);
         curl_setopt($ch,  CURLOPT_RETURNTRANSFER, true);