...
|
...
|
@@ -79,6 +79,20 @@ class SyncToEsCmd { |
|
|
];
|
|
|
unset($data['from_name']);
|
|
|
unset($data['date']);
|
|
|
|
|
|
if(!empty($data['to_name']) && strlen($data['to_name'])>10000){
|
|
|
$data['to_name'] = @json_decode($data['to_name'],true);
|
|
|
if(is_array()){
|
|
|
$data['to_name'] = array_map(function ($v){
|
|
|
$v['name'] = '';
|
|
|
return $v;
|
|
|
},$data['to_name']);
|
|
|
$data['to_name'] = json_encode($data['to_name']);
|
|
|
}else{
|
|
|
$data['to_name'] = '';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(!empty($data['created_at'])){
|
|
|
$data['created_at'] = date('Y-m-d\TH:i:s',strtotime($data['created_at']));
|
|
|
}
|
...
|
...
|
|