This commit is contained in:
root 2020-01-04 17:21:46 +08:00
parent e3431c6ae7
commit 588577d513
2 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,10 @@ class ConfigController extends Controller
'app_url' => config('v2board.app_url'),
'subscribe_url' => config('v2board.subscribe_url'),
'plan_update_fee' => config('v2board.plan_update_fee', 0.5),
'plan_is_update' => (int)config('v2board.plan_is_update', 1)
'plan_is_update' => (int)config('v2board.plan_is_update', 1),
'try_out_register' => (int)config('v2board.try_out_register', 0),
'try_out_plan_id' => (int)config('v2board.try_out_plan_id'),
'try_out_day' => (int)config('v2board.try_out_day', 1)
],
'pay' => [
// alipay

View File

@ -58,6 +58,9 @@ class ConfigSave extends FormRequest
'subscribe_url' => 'url',
'plan_update_fee' => 'numeric',
'plan_is_update' => 'in:0,1',
'try_out_register' => 'in:0,1',
'try_out_plan_id' => 'integer',
'try_out_day' => 'integer',
// server
'server_token' => 'min:16',
// alipay