作者 邓超

x uuid

... ... @@ -164,7 +164,7 @@ class Home extends Base {
// map
$lists = array_map(function ($v){
$v['uuid'] = get_email_uuid($v['subject'],$v['udate'],$v['folder_id'],$v['from'],$v['to'],$v['size']);
$v['uuid'] = get_email_uuid($v['subject'],$v['udate'],$v['from'],$v['to'],$v['size']);
return $v;
},$lists);
... ... @@ -634,7 +634,7 @@ class Home extends Base {
if($data){
$sync_num = 0;
$data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['folder_id'],$data['from'],$data['to'],$data['size']);
$data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']);
$data['to_name'] = $data['to_name'] ? json_decode($data['to_name'],true) : [];
$data['cc'] = $data['cc'] ? json_decode($data['cc'],true) : [];
... ...
... ... @@ -449,9 +449,9 @@ function strip_tags_content($text, $tags = '', $invert = FALSE) {
* @author:dc
* @time 2023/9/18 9:33
*/
function get_email_uuid($subject,$udate,$folder,$form,$to,$size){
function get_email_uuid($subject,$udate,$form,$to,$size){
return md5(json_encode([$subject,$udate,$folder,$form,$to,$size]));
return md5(json_encode([$subject,$udate,$form,$to,$size]));
}
... ...