mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 08:09:10 +08:00
feature: customer service system
This commit is contained in:
parent
488eafdd67
commit
b740998760
@ -110,7 +110,9 @@ class ConfigController extends Controller
|
||||
'frontend_theme_header' => config('v2board.frontend_theme_header', 'dark'),
|
||||
'frontend_theme_color' => config('v2board.frontend_theme_color', 'default'),
|
||||
'frontend_background_url' => config('v2board.frontend_background_url'),
|
||||
'frontend_admin_path' => config('v2board.frontend_admin_path', 'admin')
|
||||
'frontend_admin_path' => config('v2board.frontend_admin_path', 'admin'),
|
||||
'frontend_customer_service_method' => config('v2board.frontend_customer_service_method', 0),
|
||||
'frontend_customer_service_id' => config('v2board.frontend_customer_service_id'),
|
||||
],
|
||||
'server' => [
|
||||
'server_token' => config('v2board.server_token'),
|
||||
|
@ -87,6 +87,8 @@ class ConfigSave extends FormRequest
|
||||
'frontend_theme_color' => 'in:default,darkblue,black',
|
||||
'frontend_background_url' => 'nullable|url',
|
||||
'frontend_admin_path' => '',
|
||||
'frontend_customer_service_method' => '',
|
||||
'frontend_customer_service_id' => '',
|
||||
// tutorial
|
||||
'apple_id' => 'nullable|email',
|
||||
'apple_id_password' => '',
|
||||
|
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
2
public/assets/user/components.async.js
vendored
2
public/assets/user/components.async.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/user/env.example.js
vendored
4
public/assets/user/env.example.js
vendored
@ -12,5 +12,7 @@ window.settings = {
|
||||
color: 'default'
|
||||
},
|
||||
// 背景
|
||||
background_url: ''
|
||||
background_url: '',
|
||||
// crisp
|
||||
crisp_id: ''
|
||||
}
|
||||
|
2
public/assets/user/umi.js
vendored
2
public/assets/user/umi.js
vendored
File diff suppressed because one or more lines are too long
2
public/assets/user/vendors.async.js
vendored
2
public/assets/user/vendors.async.js
vendored
File diff suppressed because one or more lines are too long
@ -20,7 +20,8 @@
|
||||
},
|
||||
verison: '{{$verison}}',
|
||||
background_url: '{{$backgroun_url}}',
|
||||
description: '{{$description}}'
|
||||
description: '{{$description}}',
|
||||
crisp_id: '{{$crisp_id}}'
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
@ -26,7 +26,8 @@ Route::get('/', function (Request $request) {
|
||||
'theme_color' => config('v2board.frontend_theme_color', 'default'),
|
||||
'backgroun_url' => config('v2board.frontend_background_url'),
|
||||
'verison' => config('app.version'),
|
||||
'description' => config('v2board.app_description', 'V2Board is best')
|
||||
'description' => config('v2board.app_description', 'V2Board is best'),
|
||||
'crisp_id' => config('v2board.frontend_customer_service_method') === 'crisp' ? config('v2board.frontend_customer_service_id') : ''
|
||||
]);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user