浏览代码

stats debug

zz 5 年之前
父节点
当前提交
e23c2282d7
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      app/Console/Commands/InnerOuterWeixinStats.php

+ 1 - 4
app/Console/Commands/InnerOuterWeixinStats.php

@@ -40,7 +40,7 @@ class InnerOuterWeixinStats extends Command
     public function handle()
     {
         $day = $this->option('day');
-        if($day){
+        if(!$day){
             $day = date('Y-m-d',time()-86400);
         }
         $this->getByDay($day);
@@ -69,9 +69,6 @@ class InnerOuterWeixinStats extends Command
                 $param = $from;
             }
 
-            if(str_contains($from,['custom','template'])){
-                return ;
-            }
             if(str_contains($from,['template'])){
                 $type = 'template';
                 list($temp,$param) = explode('_',$from);