作者 lyh

gx生成评论

@@ -70,6 +70,7 @@ class InitKeywordComment extends Command @@ -70,6 +70,7 @@ class InitKeywordComment extends Command
70 if(!empty($text)){ 70 if(!empty($text)){
71 $data = []; 71 $data = [];
72 foreach ($matches[0] as $item){ 72 foreach ($matches[0] as $item){
  73 + $item = json_decode($item);
73 $data[] = [ 74 $data[] = [
74 'nickname'=>$item['name'], 75 'nickname'=>$item['name'],
75 'text'=>$item['comment'], 76 'text'=>$item['comment'],