作者 lyh

变更数据

... ... @@ -13,6 +13,7 @@ use App\Models\Manage\Manage;
use App\Models\User\User;
use App\Models\WebSetting\WebLanguage;
use App\Services\HumanizeAiTextService;
use App\Services\WordAiService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;
... ... @@ -190,6 +191,25 @@ class IndexController extends BaseController
}
/**
* @remark :去Ai痕迹
* @name :notWordAi
* @author :lyh
* @method :post
* @time :2025/11/19 17:57
*/
public function notWordAiHumanizer()
{
$this->request->validate([
'text'=>'required',
],[
'text.required' => '文本text不能为空',
]);
$wordAiService = new WordAiService();
$data = $wordAiService->setApiAvoid($this->param['text']);
$this->response('success', Code::SUCCESS, $data);
}
/**
* @remark :翻译
* @name :stringTranslation
* @author :lyh
... ...
<?php
/**
* @remark :
* @name :WordAiService.php
* @author :lyh
* @method :post
* @time :2025/11/19 17:40
*/
namespace App\Services;
use Illuminate\Support\Facades\Http;
class WordAiService
{
public $email = 'bill@ai.cc';
public $key = '868545714b911ab135327793fcadf46e';
public $url = 'https://wai.wordai.com/';
/**
* @remark :ai检测(WordAi 避免检测到)
* @name :setApiAvoid
* @author :lyh
* @method :post
* @time :2025/11/19 17:43
*/
public function setApiAvoid($input = '',$model = 'change_less')
{
$response = Http::post($this->url.'/api/avoid', [
'email' => $this->email,
'key' => $this->key,
'input' => $input,
'mode' => $model
]);
if ($response->successful()) {
$result = $response->json();
// 处理返回结果
return $result;
} else {
// 处理错误
return false;
}
}
/**
* @remark :重写文章
* @name :setApiRewrite
* @author :lyh
* @method :post
* @time :2025/11/19 17:45
*/
public function setApiRewrite()
{
return true;
}
}
... ...
... ... @@ -18,6 +18,7 @@ Route::middleware(['aloginauth'])->group(function () {
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::any('/notWordAiHumanizer', [Aside\Com\IndexController::class, 'notWordAiHumanizer'])->name('admin.notWordAiHumanizer');
Route::any('/prInfoDownload', [Aside\Com\IndexController::class, 'prInfoDownload'])->name('admin.prInfoDownload');//pr报告下载
//会员相关
Route::prefix('user')->group(function () {
... ...