正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -28,6 +28,7 @@ class AutoMail { | @@ -28,6 +28,7 @@ class AutoMail { | ||
| 28 | echo "start "; | 28 | echo "start "; |
| 29 | echo date('Y-m-d H:i:s'); | 29 | echo date('Y-m-d H:i:s'); |
| 30 | echo "\n"; | 30 | echo "\n"; |
| 31 | + $at = 0; | ||
| 31 | if(redis()->get('resync_to_es_inbox') == 1){ | 32 | if(redis()->get('resync_to_es_inbox') == 1){ |
| 32 | 33 | ||
| 33 | redis()->set('resync_to_es_inbox',2,3600); | 34 | redis()->set('resync_to_es_inbox',2,3600); |
| @@ -44,11 +45,12 @@ class AutoMail { | @@ -44,11 +45,12 @@ class AutoMail { | ||
| 44 | $total = $this->essss(0,$post_id,0); | 45 | $total = $this->essss(0,$post_id,0); |
| 45 | $autoTotal = $this->essss(0,$post_id,1); | 46 | $autoTotal = $this->essss(0,$post_id,1); |
| 46 | echo "postid {$post_id} inbox {$total} auto {$autoTotal}\n"; | 47 | echo "postid {$post_id} inbox {$total} auto {$autoTotal}\n"; |
| 48 | + $at += $total + $autoTotal; | ||
| 47 | } | 49 | } |
| 48 | 50 | ||
| 49 | redis()->set('resync_to_es_inbox',2,600); | 51 | redis()->set('resync_to_es_inbox',2,600); |
| 50 | } | 52 | } |
| 51 | - | 53 | + echo "总数量 {$at} "; |
| 52 | echo "end "; | 54 | echo "end "; |
| 53 | echo date('Y-m-d H:i:s'); | 55 | echo date('Y-m-d H:i:s'); |
| 54 | echo "\n"; | 56 | echo "\n"; |
-
请 注册 或 登录 后发表评论