zz 6 năm trước cách đây
mục cha
commit
ee273807a3
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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);
     }
 }