欢迎语:加部门职务姓名前缀,点选后自动发送
This commit is contained in:
@@ -47,6 +47,12 @@
|
||||
chatBotClearUrl: "{{ route('chatbot.clear') }}",
|
||||
chatBotEnabled: {{ \App\Models\Sysparam::getValue('chatbot_enabled', '0') === '1' ? 'true' : 'false' }},
|
||||
hasPosition: {{ Auth::user()->activePosition || Auth::user()->user_level >= $superLevel ? 'true' : 'false' }},
|
||||
@php
|
||||
$activePos = Auth::user()->activePosition;
|
||||
$deptName = $activePos?->position?->department?->name ?? '';
|
||||
$posName = $activePos?->position?->name ?? '';
|
||||
@endphp
|
||||
welcomePrefix: "{{ $deptName ? "{$deptName} {$posName} {$user->username}" : $user->username }}",
|
||||
myMaxReward: @php
|
||||
if (Auth::id() === 1) {
|
||||
// 超级管理员(id=1)无需职务,直接拥有不限量奖励权
|
||||
|
||||
Reference in New Issue
Block a user