|
|
@@ -21,7 +21,7 @@ use think\facade\Log;
|
|
|
class NotificTestController extends BaseLikeAdminController
|
|
|
{
|
|
|
public array $notNeedLogin = ['addOnlineCustomerService','subOnlineCustomerService','getBusinessAllocationValue',
|
|
|
- 'customerSendMessage','customerClsMessage','getNotificList'];
|
|
|
+ 'customerSendMessage','assignBusinessToCustomer','customerClsMessage','getNotificList','getAllNotificList'];
|
|
|
|
|
|
|
|
|
public function addOnlineCustomerService(){
|
|
|
@@ -35,9 +35,9 @@ class NotificTestController extends BaseLikeAdminController
|
|
|
}
|
|
|
|
|
|
// 新来业务分配给哪个客服编号
|
|
|
- public function getBusinessAllocationValue(){
|
|
|
+ /*public function getBusinessAllocationValue(){
|
|
|
$prams = $this->request->param();
|
|
|
- return $this->success('', OnlineCustomerService::getBusinessAllocationValue($prams['business_type'],$prams['business_id']), 1, 1);
|
|
|
+ return $this->success('', [OnlineCustomerService::getBusinessAllocationValue($prams['business_type'],$prams['business_id'])], 1, 1);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -45,8 +45,16 @@ class NotificTestController extends BaseLikeAdminController
|
|
|
public function customerSendMessage(){
|
|
|
$prams = $this->request->param();
|
|
|
return $this->success('', [OnlineCustomerService::customerSendMessage($prams['admin_id'],$prams['business_type'],$prams['business_id'])], 1, 1);
|
|
|
+ }*/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public function assignBusinessToCustomer(){
|
|
|
+ $prams = $this->request->param();
|
|
|
+ return $this->success('', [OnlineCustomerService::assignBusinessToCustomer($prams['business_type'],$prams['business_id'])], 1, 1);
|
|
|
}
|
|
|
- public function customerClsMessage($business_type,$business_id){
|
|
|
+
|
|
|
+ public function customerClsMessage(){
|
|
|
$prams = $this->request->param();
|
|
|
return $this->success('', [OnlineCustomerService::customerClsMessage($prams['business_type'],$prams['business_id'])], 1, 1);
|
|
|
}
|
|
|
@@ -56,6 +64,10 @@ class NotificTestController extends BaseLikeAdminController
|
|
|
return $this->success('', OnlineCustomerService::getNotificList($prams['admin_id'],$prams['business_type']), 1, 1);
|
|
|
}
|
|
|
|
|
|
+ public function getAllNotificList(){
|
|
|
+ $prams = $this->request->param();
|
|
|
+ return $this->success('', OnlineCustomerService::getAllNotificList($prams['admin_id'],['consultation','servicework'],$prams['prefix']??'',$prams['is_test']??0), 1, 1);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|