作者 lyh

gx脚本锚文本数量

@@ -11,6 +11,7 @@ use App\Models\Inquiry\InquiryData; @@ -11,6 +11,7 @@ use App\Models\Inquiry\InquiryData;
11 use App\Models\Manage\Manage; 11 use App\Models\Manage\Manage;
12 use App\Models\User\User; 12 use App\Models\User\User;
13 use App\Models\WebSetting\WebLanguage; 13 use App\Models\WebSetting\WebLanguage;
  14 +use App\Services\HumanizeAiTextService;
14 use Illuminate\Support\Facades\Cache; 15 use Illuminate\Support\Facades\Cache;
15 use Illuminate\Support\Facades\Hash; 16 use Illuminate\Support\Facades\Hash;
16 17
@@ -160,5 +161,23 @@ class IndexController extends BaseController @@ -160,5 +161,23 @@ class IndexController extends BaseController
160 $this->response('success',Code::SUCCESS,['dynamic_password'=>$dynamic_password]); 161 $this->response('success',Code::SUCCESS,['dynamic_password'=>$dynamic_password]);
161 } 162 }
162 163
163 - 164 + /**
  165 + * @remark :去ai痕迹
  166 + * @name :notAiHumanizer
  167 + * @author :lyh
  168 + * @method :post
  169 + * @time :2025/5/21 9:08
  170 + */
  171 + public function notAiHumanizer(){
  172 + $this->request->validate([
  173 + 'text'=>'required',
  174 + 'lang'=>'required'
  175 + ],[
  176 + 'text.required' => '文本text不能为空',
  177 + 'lang.required' => '语种不能为空',
  178 + ]);
  179 + $service = new HumanizeAiTextService();
  180 + $data = $service->humanizer($this->param['text'],$this->param['lang']);
  181 + $this->response('success', Code::SUCCESS, $data);
  182 + }
164 } 183 }
@@ -1214,4 +1214,5 @@ class ProjectController extends BaseController @@ -1214,4 +1214,5 @@ class ProjectController extends BaseController
1214 $lists = $model->list(['status' => 1], 'id', ['id', 'industry_name'], 'asc'); 1214 $lists = $model->list(['status' => 1], 'id', ['id', 'industry_name'], 'asc');
1215 $this->response('success', Code::SUCCESS, $lists); 1215 $this->response('success', Code::SUCCESS, $lists);
1216 } 1216 }
  1217 +
1217 } 1218 }
@@ -55,7 +55,7 @@ class HumanizeAiTextService @@ -55,7 +55,7 @@ class HumanizeAiTextService
55 */ 55 */
56 public function humanizer($text, $lang) 56 public function humanizer($text, $lang)
57 { 57 {
58 - $driver = env('HUMANIZE_AI_TEXT_DRIVER'); 58 + $driver = self::DRIVER_HUMANIZE_AI_TEXT;
59 switch ($driver){ 59 switch ($driver){
60 case self::DRIVER_HUMANIZE: 60 case self::DRIVER_HUMANIZE:
61 $action = 'humainzer/'; 61 $action = 'humainzer/';
@@ -17,6 +17,7 @@ Route::middleware(['aloginauth'])->group(function () { @@ -17,6 +17,7 @@ Route::middleware(['aloginauth'])->group(function () {
17 Route::any('/sendNotify', [Aside\Com\CNoticeController::class, 'sendNotify'])->name('admin.sendNotify'); 17 Route::any('/sendNotify', [Aside\Com\CNoticeController::class, 'sendNotify'])->name('admin.sendNotify');
18 Route::any('/getCountry', [Aside\Com\CNoticeController::class, 'getCountry'])->name('admin.getCountry'); 18 Route::any('/getCountry', [Aside\Com\CNoticeController::class, 'getCountry'])->name('admin.getCountry');
19 Route::any('/getDynamicPassword', [Aside\Com\IndexController::class, 'getDynamicPassword'])->name('admin.getDynamicPassword'); 19 Route::any('/getDynamicPassword', [Aside\Com\IndexController::class, 'getDynamicPassword'])->name('admin.getDynamicPassword');
  20 + Route::any('/notAiHumanizer', [Aside\Com\IndexController::class, 'notAiHumanizer'])->name('admin.notAiHumanizer');
20 //会员相关 21 //会员相关
21 Route::prefix('user')->group(function () { 22 Route::prefix('user')->group(function () {
22 //会员管理 23 //会员管理