正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
@@ -79,6 +79,20 @@ class SyncToEsCmd { | @@ -79,6 +79,20 @@ class SyncToEsCmd { | ||
79 | ]; | 79 | ]; |
80 | unset($data['from_name']); | 80 | unset($data['from_name']); |
81 | unset($data['date']); | 81 | unset($data['date']); |
82 | + | ||
83 | + if(!empty($data['to_name']) && strlen($data['to_name'])>10000){ | ||
84 | + $data['to_name'] = @json_decode($data['to_name'],true); | ||
85 | + if(is_array()){ | ||
86 | + $data['to_name'] = array_map(function ($v){ | ||
87 | + $v['name'] = ''; | ||
88 | + return $v; | ||
89 | + },$data['to_name']); | ||
90 | + $data['to_name'] = json_encode($data['to_name']); | ||
91 | + }else{ | ||
92 | + $data['to_name'] = ''; | ||
93 | + } | ||
94 | + } | ||
95 | + | ||
82 | if(!empty($data['created_at'])){ | 96 | if(!empty($data['created_at'])){ |
83 | $data['created_at'] = date('Y-m-d\TH:i:s',strtotime($data['created_at'])); | 97 | $data['created_at'] = date('Y-m-d\TH:i:s',strtotime($data['created_at'])); |
84 | } | 98 | } |
-
请 注册 或 登录 后发表评论