作者 lyh

gx生成评论

@@ -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 }