作者 lyh

gx生成评论

@@ -73,17 +73,18 @@ class InitKeywordComment extends Command @@ -73,17 +73,18 @@ class InitKeywordComment extends Command
73 $item = str_replace("'", '"', $item); 73 $item = str_replace("'", '"', $item);
74 // 解码成 PHP 关联数组 74 // 解码成 PHP 关联数组
75 $item = json_decode($item, true); 75 $item = json_decode($item, true);
76 - dd($item);  
77 - $data[] = [  
78 - 'nickname'=>$item['name'],  
79 - 'text'=>$item['comment'],  
80 - 'project_id'=>$project_id,  
81 - 'type'=>1,  
82 - 'uid'=>0,  
83 - ]; 76 + var_dump($item);
  77 +// $data[] = [
  78 +// 'nickname'=>$item['name'],
  79 +// 'text'=>$item['comment'],
  80 +// 'project_id'=>$project_id,
  81 +// 'type'=>1,
  82 +// 'uid'=>0,
  83 +// ];
84 } 84 }
85 - $keywordCommonModel = new AggregateKeywordComment();  
86 - $keywordCommonModel->insertAll($data); 85 + die();
  86 +// $keywordCommonModel = new AggregateKeywordComment();
  87 +// $keywordCommonModel->insertAll($data);
87 } 88 }
88 return true; 89 return true;
89 } 90 }