Tokumeikoi 4 years ago
parent
commit
26df97a862
2 changed files with 3 additions and 2 deletions
  1. 2 1
      app/Console/Commands/CheckOrder.php
  2. 1 1
      config/app.php

+ 2 - 1
app/Console/Commands/CheckOrder.php

@@ -117,7 +117,8 @@ class CheckOrder extends Command
             $user->expired_at = time();
         }
         $user->transfer_enable = $plan->transfer_enable * 1073741824;
-        if ((int)config('v2board.renew_reset_traffic_enable', 1)) {
+        // 当续费清空流量或用户先前是一次性订阅
+        if ((int)config('v2board.renew_reset_traffic_enable', 1) || $user->expired_at === NULL) {
             $user->u = 0;
             $user->d = 0;
         }

+ 1 - 1
config/app.php

@@ -236,5 +236,5 @@ return [
     | The only modification by laravel config
     |
     */
-    'version' => '1.3'
+    'version' => '1.3.1'
 ];