add auto check commission

This commit is contained in:
Tokumeikoi 2020-05-04 20:08:43 +08:00
parent 51fee8892e
commit 3167306bc8
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class CheckCommission extends Command
public function autoCheck()
{
if ((int)config('v2board.commission_auto_check_enable')) {
if ((int)config('v2board.commission_auto_check_enable', 1)) {
Order::where('commission_status', 0)
->where('status', 3)
->where('commission_balance', '>', 0)

View File

@ -31,7 +31,7 @@ class ConfigController extends Controller
'invite_gen_limit' => config('v2board.invite_gen_limit', 5),
'invite_never_expire' => config('v2board.invite_never_expire', 0),
'commission_first_time_enable' => config('v2board.commission_first_time_enable', 1),
'commission_auto_check' => config('v2board.commission_auto_check_enable', 1)
'commission_auto_check_enable' => config('v2board.commission_auto_check_enable', 1)
],
'site' => [
'safe_mode_enable' => (int)config('v2board.safe_mode_enable', 0),

File diff suppressed because one or more lines are too long