cqp 2 недель назад
Родитель
Сommit
143caca01e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Service/TestService.php

+ 1 - 1
app/Service/TestService.php

@@ -480,7 +480,7 @@ class TestService extends Service
 
 
     //-----------------------------------朗峰u8-----
     //-----------------------------------朗峰u8-----
     public function post_helper($url, $data, $header = [], $timeout = 20, $title = ""){
     public function post_helper($url, $data, $header = [], $timeout = 20, $title = ""){
-        Log::channel('apiLog')->info($title . 'POST', ["api" => $url , "param" => $data ,"header" => $header]);
+        Log::channel('apiLog')->info($title . 'POST', ["api" => $url , "param" => json_decode($data,true) ,"header" => $header]);
 
 
         $ch = curl_init();
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $url);
         curl_setopt($ch, CURLOPT_URL, $url);