正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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'], |
-
请 注册 或 登录 后发表评论