diff --git a/app/Console/Commands/CheckOrder.php b/app/Console/Commands/CheckOrder.php index f7a11349..21f53e04 100755 --- a/app/Console/Commands/CheckOrder.php +++ b/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; } diff --git a/config/app.php b/config/app.php index 97001952..d7a2a2e7 100755 --- a/config/app.php +++ b/config/app.php @@ -236,5 +236,5 @@ return [ | The only modification by laravel config | */ - 'version' => '1.3' + 'version' => '1.3.1' ];