正在显示
3 个修改的文件
包含
79 行增加
和
0 行删除
| @@ -13,6 +13,7 @@ use App\Models\Manage\Manage; | @@ -13,6 +13,7 @@ use App\Models\Manage\Manage; | ||
| 13 | use App\Models\User\User; | 13 | use App\Models\User\User; |
| 14 | use App\Models\WebSetting\WebLanguage; | 14 | use App\Models\WebSetting\WebLanguage; |
| 15 | use App\Services\HumanizeAiTextService; | 15 | use App\Services\HumanizeAiTextService; |
| 16 | +use App\Services\WordAiService; | ||
| 16 | use Illuminate\Support\Facades\Cache; | 17 | use Illuminate\Support\Facades\Cache; |
| 17 | use Illuminate\Support\Facades\Hash; | 18 | use Illuminate\Support\Facades\Hash; |
| 18 | 19 | ||
| @@ -190,6 +191,25 @@ class IndexController extends BaseController | @@ -190,6 +191,25 @@ class IndexController extends BaseController | ||
| 190 | } | 191 | } |
| 191 | 192 | ||
| 192 | /** | 193 | /** |
| 194 | + * @remark :去Ai痕迹 | ||
| 195 | + * @name :notWordAi | ||
| 196 | + * @author :lyh | ||
| 197 | + * @method :post | ||
| 198 | + * @time :2025/11/19 17:57 | ||
| 199 | + */ | ||
| 200 | + public function notWordAiHumanizer() | ||
| 201 | + { | ||
| 202 | + $this->request->validate([ | ||
| 203 | + 'text'=>'required', | ||
| 204 | + ],[ | ||
| 205 | + 'text.required' => '文本text不能为空', | ||
| 206 | + ]); | ||
| 207 | + $wordAiService = new WordAiService(); | ||
| 208 | + $data = $wordAiService->setApiAvoid($this->param['text']); | ||
| 209 | + $this->response('success', Code::SUCCESS, $data); | ||
| 210 | + } | ||
| 211 | + | ||
| 212 | + /** | ||
| 193 | * @remark :翻译 | 213 | * @remark :翻译 |
| 194 | * @name :stringTranslation | 214 | * @name :stringTranslation |
| 195 | * @author :lyh | 215 | * @author :lyh |
app/Services/WordAiService.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :WordAiService.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/11/19 17:40 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Services; | ||
| 11 | + | ||
| 12 | +use Illuminate\Support\Facades\Http; | ||
| 13 | + | ||
| 14 | +class WordAiService | ||
| 15 | +{ | ||
| 16 | + public $email = 'bill@ai.cc'; | ||
| 17 | + | ||
| 18 | + public $key = '868545714b911ab135327793fcadf46e'; | ||
| 19 | + | ||
| 20 | + public $url = 'https://wai.wordai.com/'; | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * @remark :ai检测(WordAi 避免检测到) | ||
| 24 | + * @name :setApiAvoid | ||
| 25 | + * @author :lyh | ||
| 26 | + * @method :post | ||
| 27 | + * @time :2025/11/19 17:43 | ||
| 28 | + */ | ||
| 29 | + public function setApiAvoid($input = '',$model = 'change_less') | ||
| 30 | + { | ||
| 31 | + $response = Http::post($this->url.'/api/avoid', [ | ||
| 32 | + 'email' => $this->email, | ||
| 33 | + 'key' => $this->key, | ||
| 34 | + 'input' => $input, | ||
| 35 | + 'mode' => $model | ||
| 36 | + ]); | ||
| 37 | + if ($response->successful()) { | ||
| 38 | + $result = $response->json(); | ||
| 39 | + // 处理返回结果 | ||
| 40 | + return $result; | ||
| 41 | + } else { | ||
| 42 | + // 处理错误 | ||
| 43 | + return false; | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | + | ||
| 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 | +} |
| @@ -18,6 +18,7 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -18,6 +18,7 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 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 | Route::any('/notAiHumanizer', [Aside\Com\IndexController::class, 'notAiHumanizer'])->name('admin.notAiHumanizer'); |
| 21 | + Route::any('/notWordAiHumanizer', [Aside\Com\IndexController::class, 'notWordAiHumanizer'])->name('admin.notWordAiHumanizer'); | ||
| 21 | Route::any('/prInfoDownload', [Aside\Com\IndexController::class, 'prInfoDownload'])->name('admin.prInfoDownload');//pr报告下载 | 22 | Route::any('/prInfoDownload', [Aside\Com\IndexController::class, 'prInfoDownload'])->name('admin.prInfoDownload');//pr报告下载 |
| 22 | //会员相关 | 23 | //会员相关 |
| 23 | Route::prefix('user')->group(function () { | 24 | Route::prefix('user')->group(function () { |
-
请 注册 或 登录 后发表评论