作者 lyh

gx生成评论

@@ -67,7 +67,6 @@ class InitKeywordComment extends Command @@ -67,7 +67,6 @@ class InitKeywordComment extends Command
67 $text = Gpt::instance()->openai_chat_qqs($info['ai']); 67 $text = Gpt::instance()->openai_chat_qqs($info['ai']);
68 $text = Common::deal_keywords($text); 68 $text = Common::deal_keywords($text);
69 preg_match_all('/\{[^{}]*\}/', $text, $matches); 69 preg_match_all('/\{[^{}]*\}/', $text, $matches);
70 - dd($matches[0]);  
71 if(!empty($text)){ 70 if(!empty($text)){
72 $data = []; 71 $data = [];
73 foreach ($matches[0] as $item){ 72 foreach ($matches[0] as $item){