|
|
@@ -14,6 +14,13 @@ class OnlineCustomerService
|
|
|
* $business_type: consultation servicework
|
|
|
*/
|
|
|
|
|
|
+ public array $business_types = [
|
|
|
+ 'consultation',
|
|
|
+ 'servicework'
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public static function addOnlineCustomerService($admin_id){
|
|
|
$customerOnlineServiceArr = Cache::store('common_redis')->get('customer_online_service_list');
|
|
|
$max_code = 1;
|
|
|
@@ -96,15 +103,18 @@ class OnlineCustomerService
|
|
|
switch ($business_type){
|
|
|
case 'consultation':
|
|
|
$to_router = '/works/external_consultation';
|
|
|
+ $notificationTitle = '客咨消息';
|
|
|
break;
|
|
|
case 'servicework':
|
|
|
$to_router = '/works/service_work';
|
|
|
+ $notificationTitle = '订单消息';
|
|
|
break;
|
|
|
default:
|
|
|
$to_router = '/workbench';
|
|
|
+ $notificationTitle = '';
|
|
|
break;
|
|
|
}
|
|
|
- return ['type'=>$business_type,'unique_code'=> md5($count),'to_router'=>$to_router,'notific_count' => $count];
|
|
|
+ return ['type'=>$business_type,'unique_code'=> md5($count),'to_router'=>$to_router,'notificationTitle' => $notificationTitle,'notific_count' => $count];
|
|
|
}
|
|
|
|
|
|
|