feat(MNG): FCM 채널명 동기화 및 config 일원화 (7채널)
- push_urgent → push_vendor_register (거래처등록) - push_payment → push_approval_request (결재요청) - push_income 신규 추가 (입금) - config/fcm.php 전체 7개 채널 등록 - FcmController validation 및 Blade select 옵션 반영 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,7 @@ public function sendPush(Request $request): View
|
||||
'tenant_id' => 'nullable|integer|exists:tenants,id',
|
||||
'user_id' => 'nullable|integer',
|
||||
'platform' => 'nullable|string|in:android,ios,web',
|
||||
'channel_id' => 'nullable|string|in:push_default,push_urgent,push_payment,push_sales_order,push_purchase_order,push_contract',
|
||||
'channel_id' => 'nullable|string|in:push_default,push_vendor_register,push_approval_request,push_income,push_sales_order,push_purchase_order,push_contract',
|
||||
'type' => 'nullable|string|max:50',
|
||||
'url' => 'nullable|string|max:500',
|
||||
]);
|
||||
|
||||
@@ -38,8 +38,13 @@
|
||||
|
|
||||
*/
|
||||
'channels' => [
|
||||
'default' => 'push_default',
|
||||
'urgent' => 'push_urgent',
|
||||
'default' => 'push_default',
|
||||
'vendor_register' => 'push_vendor_register',
|
||||
'approval_request' => 'push_approval_request',
|
||||
'income' => 'push_income',
|
||||
'sales_order' => 'push_sales_order',
|
||||
'purchase_order' => 'push_purchase_order',
|
||||
'contract' => 'push_contract',
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@@ -99,8 +99,9 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
|
||||
<select name="channel_id"
|
||||
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
||||
<option value="push_default">📢 일반 알림</option>
|
||||
<option value="push_urgent">🚨 긴급 알림 (신규업체 등록)</option>
|
||||
<option value="push_payment">💰 결제 알림</option>
|
||||
<option value="push_vendor_register">🏢 거래처등록 알림 (신규업체)</option>
|
||||
<option value="push_approval_request">📋 결재요청 알림</option>
|
||||
<option value="push_income">💰 입금 알림</option>
|
||||
<option value="push_sales_order">📦 수주 알림</option>
|
||||
<option value="push_purchase_order">🛒 발주 알림</option>
|
||||
<option value="push_contract">📝 계약 알림</option>
|
||||
|
||||
Reference in New Issue
Block a user