正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -70,6 +70,9 @@ class InitKeywordComment extends Command | @@ -70,6 +70,9 @@ 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 = str_replace("'", '"', $item); | ||
| 74 | + // 解码成 PHP 关联数组 | ||
| 75 | + $item = json_decode($item, true); | ||
| 73 | dd($item); | 76 | dd($item); |
| 74 | $data[] = [ | 77 | $data[] = [ |
| 75 | 'nickname'=>$item['name'], | 78 | 'nickname'=>$item['name'], |
-
请 注册 或 登录 后发表评论