add renew reset traffic switch

This commit is contained in:
Tokumeikoi
2020-03-02 00:14:58 +08:00
parent bb49fb15d1
commit 0f72e9a091
4 changed files with 11 additions and 4 deletions

View File

@ -39,7 +39,7 @@ class ResetTraffic extends Command
public function handle()
{
$user = User::where('expired_at', '!=', NULL);
$resetTrafficMethod = config('v2board.reset_traffic_method', 0);
$resetTrafficMethod = (int)config('v2board.reset_traffic_method', 0);
switch ($resetTrafficMethod) {
// 1 a month
case 0: