作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3287
@@ -16,6 +16,7 @@ use App\Services\HumanizeAiTextService; @@ -16,6 +16,7 @@ use App\Services\HumanizeAiTextService;
16 use App\Services\WordAiService; 16 use App\Services\WordAiService;
17 use Illuminate\Support\Facades\Cache; 17 use Illuminate\Support\Facades\Cache;
18 use Illuminate\Support\Facades\Hash; 18 use Illuminate\Support\Facades\Hash;
  19 +use Illuminate\Support\Facades\Http;
19 20
20 /** 21 /**
21 * Class IndexController 22 * Class IndexController
@@ -231,6 +232,7 @@ class IndexController extends BaseController @@ -231,6 +232,7 @@ class IndexController extends BaseController
231 public function prInfoDownload() 232 public function prInfoDownload()
232 { 233 {
233 $url = 'http://crawl.scraper.waimaoq.com/export/issuewire?token=MT0CM7y4tdFTFTm'; 234 $url = 'http://crawl.scraper.waimaoq.com/export/issuewire?token=MT0CM7y4tdFTFTm';
234 - $this->response('success', Code::SUCCESS, ['url'=>$url]); 235 + $list = Http::get($url);
  236 + $this->response('success', Code::SUCCESS, ['url'=>$url,'list'=>$list]);
235 } 237 }
236 } 238 }
@@ -28,7 +28,8 @@ class WordAiService @@ -28,7 +28,8 @@ class WordAiService
28 */ 28 */
29 public function setApiAvoid($input = '',$model = 'change_less') 29 public function setApiAvoid($input = '',$model = 'change_less')
30 { 30 {
31 - $response = Http::post($this->url.'/api/avoid', [ 31 + $response = Http::timeout(300)->retry(3, 5000)
  32 + ->post($this->url.'/api/avoid', [
32 'email' => $this->email, 33 'email' => $this->email,
33 'key' => $this->key, 34 'key' => $this->key,
34 'input' => $input, 35 'input' => $input,
@@ -44,15 +45,4 @@ class WordAiService @@ -44,15 +45,4 @@ class WordAiService
44 } 45 }
45 } 46 }
46 47
47 - /**  
48 - * @remark :重写文章  
49 - * @name :setApiRewrite  
50 - * @author :lyh  
51 - * @method :post  
52 - * @time :2025/11/19 17:45  
53 - */  
54 - public function setApiRewrite()  
55 - {  
56 - return true;  
57 - }  
58 } 48 }