正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -10,7 +10,6 @@ use GuzzleHttp\Client; | @@ -10,7 +10,6 @@ use GuzzleHttp\Client; | ||
| 10 | use GuzzleHttp\Exception\GuzzleException; | 10 | use GuzzleHttp\Exception\GuzzleException; |
| 11 | use Illuminate\Support\Carbon; | 11 | use Illuminate\Support\Carbon; |
| 12 | use Illuminate\Support\Facades\Redis; | 12 | use Illuminate\Support\Facades\Redis; |
| 13 | -use App\Models\User\User; | ||
| 14 | 13 | ||
| 15 | define('HTTP_OPENAI_URL', 'http://openai.waimaoq.com/'); | 14 | define('HTTP_OPENAI_URL', 'http://openai.waimaoq.com/'); |
| 16 | /** | 15 | /** |
| @@ -77,7 +76,6 @@ if (!function_exists('http_post')) { | @@ -77,7 +76,6 @@ if (!function_exists('http_post')) { | ||
| 77 | if (curl_errno($ch)) { | 76 | if (curl_errno($ch)) { |
| 78 | $error_message = curl_error($ch); | 77 | $error_message = curl_error($ch); |
| 79 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error_message, true) . PHP_EOL, FILE_APPEND); | 78 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error_message, true) . PHP_EOL, FILE_APPEND); |
| 80 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND); | ||
| 81 | } | 79 | } |
| 82 | curl_close($ch); | 80 | curl_close($ch); |
| 83 | return json_decode($res, true); | 81 | return json_decode($res, true); |
-
请 注册 或 登录 后发表评论