|
...
|
...
|
@@ -55,10 +55,10 @@ class InitKeywordCommon extends Command |
|
|
|
$text = Gpt::instance()->openai_chat_qqs($info['ai']);
|
|
|
|
$text = Common::deal_keywords($text);
|
|
|
|
$text = Common::deal_str($text);
|
|
|
|
$text = preg_match_all('/\{[^{}]*\}/', $text, $matches);
|
|
|
|
preg_match_all('/\{[^{}]*\}/', $text, $matches);
|
|
|
|
if(!empty($text)){
|
|
|
|
$data = [];
|
|
|
|
foreach ($text as $item){
|
|
|
|
foreach ($matches[0] as $item){
|
|
|
|
$data[] = [
|
|
|
|
'nickname'=>$item['name'],
|
|
|
|
'text'=>$item['comment'],
|
...
|
...
|
|