| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace app\common\controller;
- use app\api\logic\PerformanceLogic;
- use app\api\logic\ServiceOrderLogic;
- use app\common\enum\PayEnum;
- use app\common\enum\worker\WorkerAccountLogEnum;
- use app\common\logic\PayNotifyLogic;
- use app\common\logic\WorkerAccountLogLogic;
- use app\common\model\external\ExternalPlatform;
- use app\common\model\recharge\RechargeOrder;
- use app\common\model\works\ServiceWork;
- use app\common\model\works\ServiceWorkLog;
- use app\common\service\OnlineCustomerService;
- use think\facade\Cache;
- use think\facade\Config;
- use think\facade\Log;
- class NotificTestController extends BaseLikeAdminController
- {
- public array $notNeedLogin = ['addOnlineCustomerService','subOnlineCustomerService','getBusinessAllocationValue',
- 'customerSendMessage','assignBusinessToCustomer','customerClsMessage','getNotificList','getAllNotificList'];
- public function addOnlineCustomerService(){
- $prams = $this->request->param();
- return $this->success('', OnlineCustomerService::addOnlineCustomerService($prams['admin_id']), 1, 1);
- }
- public function subOnlineCustomerService(){
- $prams = $this->request->param();
- return $this->success('', OnlineCustomerService::subOnlineCustomerService($prams['admin_id']), 1, 1);
- }
- // 新来业务分配给哪个客服编号
- /*public function getBusinessAllocationValue(){
- $prams = $this->request->param();
- return $this->success('', [OnlineCustomerService::getBusinessAllocationValue($prams['business_type'],$prams['business_id'])], 1, 1);
- }
- // 向客服发送消息提醒 $business_type = 地区编码+业务类型 consultation_notific service_work_notific
- 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(){
- $prams = $this->request->param();
- return $this->success('', [OnlineCustomerService::customerClsMessage($prams['business_type'],$prams['business_id'])], 1, 1);
- }
- public function getNotificList(){
- $prams = $this->request->param();
- 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);
- }
- }
|