Browse Source

update: reset traffic

tokumeikoi 3 years ago
parent
commit
9d96d68f12
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/ResetTraffic.php

+ 2 - 2
app/Console/Commands/ResetTraffic.php

@@ -64,12 +64,12 @@ class ResetTraffic extends Command
                     break;
                 }
                 case 0: {
-                    $builder = $this->builder->where('plan_id', $plan->id);
+                    $builder = with(clone($this->builder))->where('plan_id', $plan->id);
                     $this->resetByMonthFirstDay($builder);
                     break;
                 }
                 case 1: {
-                    $builder = $this->builder->where('plan_id', $plan->id);
+                    $builder = with(clone($this->builder))->where('plan_id', $plan->id);
                     $this->resetByExpireDay($builder);
                     break;
                 }