正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -49,12 +49,12 @@ class InitKeywordCommon extends Command | @@ -49,12 +49,12 @@ class InitKeywordCommon extends Command | ||
| 49 | * @time :2025/6/3 15:42 | 49 | * @time :2025/6/3 15:42 |
| 50 | */ | 50 | */ |
| 51 | public function _action(){ | 51 | public function _action(){ |
| 52 | - dd(1111111111); | ||
| 53 | $aiCommonModel = new AiCommand(); | 52 | $aiCommonModel = new AiCommand(); |
| 54 | $info = $aiCommonModel->read(['key'=>'tag_comment']); | 53 | $info = $aiCommonModel->read(['key'=>'tag_comment']); |
| 55 | $text = Gpt::instance()->openai_chat_qqs($info['ai']); | 54 | $text = Gpt::instance()->openai_chat_qqs($info['ai']); |
| 56 | $text = Common::deal_keywords($text); | 55 | $text = Common::deal_keywords($text); |
| 57 | - dd($text); | 56 | + $text = preg_match_all('/\{[^{}]*\}/', $text, $matches); |
| 57 | + dd($matches[0]); | ||
| 58 | return Common::deal_str($text); | 58 | return Common::deal_str($text); |
| 59 | } | 59 | } |
| 60 | } | 60 | } |
-
请 注册 或 登录 后发表评论