作者 lyh

gx生成评论

... ... @@ -68,9 +68,9 @@ class InitKeywordComment extends Command
$text = Common::deal_keywords($text);
preg_match_all('/\{[^{}]*\}/', $text, $matches);
if(!empty($text)){
dd($matches[0]);
$data = [];
foreach ($matches[0] as $item){
$item = json_decode($item);
dd($item);
$data[] = [
'nickname'=>$item['name'],
... ...