|
...
|
...
|
@@ -49,12 +49,12 @@ class InitKeywordCommon extends Command |
|
|
|
* @time :2025/6/3 15:42
|
|
|
|
*/
|
|
|
|
public function _action(){
|
|
|
|
dd(1111111111);
|
|
|
|
$aiCommonModel = new AiCommand();
|
|
|
|
$info = $aiCommonModel->read(['key'=>'tag_comment']);
|
|
|
|
$text = Gpt::instance()->openai_chat_qqs($info['ai']);
|
|
|
|
$text = Common::deal_keywords($text);
|
|
|
|
dd($text);
|
|
|
|
$text = preg_match_all('/\{[^{}]*\}/', $text, $matches);
|
|
|
|
dd($matches[0]);
|
|
|
|
return Common::deal_str($text);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|