|
...
|
...
|
@@ -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);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|