...
|
...
|
@@ -28,6 +28,7 @@ class AutoMail { |
|
|
echo "start ";
|
|
|
echo date('Y-m-d H:i:s');
|
|
|
echo "\n";
|
|
|
$at = 0;
|
|
|
if(redis()->get('resync_to_es_inbox') == 1){
|
|
|
|
|
|
redis()->set('resync_to_es_inbox',2,3600);
|
...
|
...
|
@@ -44,11 +45,12 @@ class AutoMail { |
|
|
$total = $this->essss(0,$post_id,0);
|
|
|
$autoTotal = $this->essss(0,$post_id,1);
|
|
|
echo "postid {$post_id} inbox {$total} auto {$autoTotal}\n";
|
|
|
$at += $total + $autoTotal;
|
|
|
}
|
|
|
|
|
|
redis()->set('resync_to_es_inbox',2,600);
|
|
|
}
|
|
|
|
|
|
echo "总数量 {$at} ";
|
|
|
echo "end ";
|
|
|
echo date('Y-m-d H:i:s');
|
|
|
echo "\n";
|
...
|
...
|
|