作者 lyh

gx生成评论

@@ -68,9 +68,9 @@ class InitKeywordComment extends Command @@ -68,9 +68,9 @@ class InitKeywordComment extends Command
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 if(!empty($text)){ 70 if(!empty($text)){
  71 + dd($matches[0]);
71 $data = []; 72 $data = [];
72 foreach ($matches[0] as $item){ 73 foreach ($matches[0] as $item){
73 - $item = json_decode($item);  
74 dd($item); 74 dd($item);
75 $data[] = [ 75 $data[] = [
76 'nickname'=>$item['name'], 76 'nickname'=>$item['name'],