...
|
...
|
@@ -101,8 +101,8 @@ class Home extends Base { |
|
|
*/
|
|
|
public function sync(){
|
|
|
$emails = web_request_emails();
|
|
|
$udate = app()->request('udate',0,'intval');
|
|
|
if(!$udate){
|
|
|
$udate = app()->request('udate');
|
|
|
if(!$udate || !is_array($udate)){
|
|
|
return '';
|
|
|
}
|
|
|
|
...
|
...
|
@@ -139,7 +139,7 @@ class Home extends Base { |
|
|
$folder['id']
|
|
|
)
|
|
|
);
|
|
|
$udate = $udate > $maxudate ? $udate : $maxudate;
|
|
|
$udate = ($udate[$email['email']]??0) > $maxudate ? $udate : $maxudate;
|
|
|
|
|
|
// 通过时间来搜索uid
|
|
|
$uids = $mail->client->search(['ON'=>date('Y-m-d H:i:s',$udate)]);
|
...
|
...
|
|