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

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

@@ -78,7 +78,8 @@ class InnerOuterWeixinStats extends Command
                 $type = 'custom';
                 $type = 'custom';
                 list($temp,$param) = explode('_',$from);
                 list($temp,$param) = explode('_',$from);
             }
             }
-
+            Redis::del($uv_key);
+            Redis::hdel($pv_key,$day);
             if(!$type || !$param || !is_numeric($param)) continue;
             if(!$type || !$param || !is_numeric($param)) continue;
 
 
             $data[] = [
             $data[] = [
@@ -97,5 +98,6 @@ class InnerOuterWeixinStats extends Command
             }
             }
         }
         }
         if($data){DB::table('inner_outer_weixin_stats')->insert($data);}
         if($data){DB::table('inner_outer_weixin_stats')->insert($data);}
+        Redis::del('InnerOuterWeixinStats:'.$day);
     }
     }
 }
 }