|
...
|
...
|
@@ -17,6 +17,7 @@ use Illuminate\Console\Command; |
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 初始化项目
|
|
...
|
...
|
@@ -380,7 +381,14 @@ class UpdateSeoTdk extends Command |
|
|
|
{
|
|
|
|
$text = Gpt::instance()->openai_chat_qqs($prompt);
|
|
|
|
$text = Common::deal_keywords($text);
|
|
|
|
return Common::deal_str($text);
|
|
|
|
$text = Common::deal_str($text);
|
|
|
|
|
|
|
|
//包含这写字 重新生成
|
|
|
|
if(Str::contains(Str::lower($text), ['[your brand]', '[brand name]'])){
|
|
|
|
return $this->ai_send($prompt);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $text;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|