This commit is contained in:
Tokumeikoi 2020-06-02 01:43:22 +08:00
parent c3e924036a
commit 26df97a862
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

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