作者 lyh

变更数据

... ... @@ -16,6 +16,7 @@ use App\Services\HumanizeAiTextService;
use App\Services\WordAiService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Http;
/**
* Class IndexController
... ... @@ -231,6 +232,7 @@ class IndexController extends BaseController
public function prInfoDownload()
{
$url = 'http://crawl.scraper.waimaoq.com/export/issuewire?token=MT0CM7y4tdFTFTm';
$this->response('success', Code::SUCCESS, ['url'=>$url]);
$list = Http::get($url);
$this->response('success', Code::SUCCESS, ['url'=>$url,'list'=>$list]);
}
}
... ...
... ... @@ -28,7 +28,8 @@ class WordAiService
*/
public function setApiAvoid($input = '',$model = 'change_less')
{
$response = Http::post($this->url.'/api/avoid', [
$response = Http::timeout(300)->retry(3, 5000)
->post($this->url.'/api/avoid', [
'email' => $this->email,
'key' => $this->key,
'input' => $input,
... ... @@ -44,15 +45,4 @@ class WordAiService
}
}
/**
* @remark :重写文章
* @name :setApiRewrite
* @author :lyh
* @method :post
* @time :2025/11/19 17:45
*/
public function setApiRewrite()
{
return true;
}
}
... ...