作者 lyh

gx脚本锚文本数量

... ... @@ -11,6 +11,7 @@ use App\Models\Inquiry\InquiryData;
use App\Models\Manage\Manage;
use App\Models\User\User;
use App\Models\WebSetting\WebLanguage;
use App\Services\HumanizeAiTextService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;
... ... @@ -160,5 +161,23 @@ class IndexController extends BaseController
$this->response('success',Code::SUCCESS,['dynamic_password'=>$dynamic_password]);
}
/**
* @remark :去ai痕迹
* @name :notAiHumanizer
* @author :lyh
* @method :post
* @time :2025/5/21 9:08
*/
public function notAiHumanizer(){
$this->request->validate([
'text'=>'required',
'lang'=>'required'
],[
'text.required' => '文本text不能为空',
'lang.required' => '语种不能为空',
]);
$service = new HumanizeAiTextService();
$data = $service->humanizer($this->param['text'],$this->param['lang']);
$this->response('success', Code::SUCCESS, $data);
}
}
... ...
... ... @@ -1214,4 +1214,5 @@ class ProjectController extends BaseController
$lists = $model->list(['status' => 1], 'id', ['id', 'industry_name'], 'asc');
$this->response('success', Code::SUCCESS, $lists);
}
}
... ...
... ... @@ -55,7 +55,7 @@ class HumanizeAiTextService
*/
public function humanizer($text, $lang)
{
$driver = env('HUMANIZE_AI_TEXT_DRIVER');
$driver = self::DRIVER_HUMANIZE_AI_TEXT;
switch ($driver){
case self::DRIVER_HUMANIZE:
$action = 'humainzer/';
... ...
... ... @@ -17,6 +17,7 @@ Route::middleware(['aloginauth'])->group(function () {
Route::any('/sendNotify', [Aside\Com\CNoticeController::class, 'sendNotify'])->name('admin.sendNotify');
Route::any('/getCountry', [Aside\Com\CNoticeController::class, 'getCountry'])->name('admin.getCountry');
Route::any('/getDynamicPassword', [Aside\Com\IndexController::class, 'getDynamicPassword'])->name('admin.getDynamicPassword');
Route::any('/notAiHumanizer', [Aside\Com\IndexController::class, 'notAiHumanizer'])->name('admin.notAiHumanizer');
//会员相关
Route::prefix('user')->group(function () {
//会员管理
... ...