mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
feat: 增加用户流量告急提醒和订阅到期提醒的默认设置
This commit is contained in:
parent
1fb43f2cda
commit
d832015136
@ -106,6 +106,9 @@ class ConfigController extends Controller
|
||||
'change_order_event_id' => (int)admin_setting('change_order_event_id', 0),
|
||||
'show_info_to_server_enable' => (int)admin_setting('show_info_to_server_enable', 0),
|
||||
'show_protocol_to_server_enable' => (int)admin_setting('show_protocol_to_server_enable', 0),
|
||||
'default_remind_expire' => (int)admin_setting('default_remind_expire',1),
|
||||
'default_remind_traffic' => (int)admin_setting('default_remind_traffic',1),
|
||||
|
||||
],
|
||||
'frontend' => [
|
||||
'frontend_theme' => admin_setting('frontend_theme', 'Xboard'),
|
||||
|
@ -131,6 +131,9 @@ class AuthController extends Controller
|
||||
$user->password = password_hash($password, PASSWORD_DEFAULT);
|
||||
$user->uuid = Helper::guid(true);
|
||||
$user->token = Helper::guid();
|
||||
// TODO 增加过期默认值、流量告急提醒默认值
|
||||
$user->remind_expire = admin_setting('default_remind_expire',1);
|
||||
$user->remind_traffic = admin_setting('default_remind_traffic',1);
|
||||
if ($request->input('invite_code')) {
|
||||
$inviteCode = InviteCode::where('code', $request->input('invite_code'))
|
||||
->where('status', 0)
|
||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user