作者 赵彬吉

update

@@ -65,7 +65,7 @@ class Gpt @@ -65,7 +65,7 @@ class Gpt
65 65
66 $time = time(); 66 $time = time();
67 try { 67 try {
68 - $result = Http::withHeaders($this->header)->withOptions(['verify' => false])->acceptJson() 68 + $result = Http::withoutVerifying()->withHeaders($this->header)->withOptions(['verify' => false])->acceptJson()
69 ->withBody(json_encode($data, JSON_UNESCAPED_UNICODE), 'application/json') 69 ->withBody(json_encode($data, JSON_UNESCAPED_UNICODE), 'application/json')
70 ->post($url); 70 ->post($url);
71 $json = $result->json(); 71 $json = $result->json();