zz 5 years ago
parent
commit
ee273807a3
1 changed files with 3 additions and 1 deletions
  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';
                 list($temp,$param) = explode('_',$from);
             }
-
+            Redis::del($uv_key);
+            Redis::hdel($pv_key,$day);
             if(!$type || !$param || !is_numeric($param)) continue;
 
             $data[] = [
@@ -97,5 +98,6 @@ class InnerOuterWeixinStats extends Command
             }
         }
         if($data){DB::table('inner_outer_weixin_stats')->insert($data);}
+        Redis::del('InnerOuterWeixinStats:'.$day);
     }
 }