NotificTestController.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace app\common\controller;
  3. use app\api\logic\PerformanceLogic;
  4. use app\api\logic\ServiceOrderLogic;
  5. use app\common\enum\PayEnum;
  6. use app\common\enum\worker\WorkerAccountLogEnum;
  7. use app\common\logic\PayNotifyLogic;
  8. use app\common\logic\WorkerAccountLogLogic;
  9. use app\common\model\external\ExternalPlatform;
  10. use app\common\model\recharge\RechargeOrder;
  11. use app\common\model\works\ServiceWork;
  12. use app\common\model\works\ServiceWorkLog;
  13. use app\common\service\OnlineCustomerService;
  14. use think\facade\Cache;
  15. use think\facade\Config;
  16. use think\facade\Log;
  17. class NotificTestController extends BaseLikeAdminController
  18. {
  19. public array $notNeedLogin = ['addOnlineCustomerService','subOnlineCustomerService','getBusinessAllocationValue',
  20. 'customerSendMessage','assignBusinessToCustomer','customerClsMessage','getNotificList','getAllNotificList'];
  21. public function addOnlineCustomerService(){
  22. $prams = $this->request->param();
  23. return $this->success('', OnlineCustomerService::addOnlineCustomerService($prams['admin_id']), 1, 1);
  24. }
  25. public function subOnlineCustomerService(){
  26. $prams = $this->request->param();
  27. return $this->success('', OnlineCustomerService::subOnlineCustomerService($prams['admin_id']), 1, 1);
  28. }
  29. // 新来业务分配给哪个客服编号
  30. /*public function getBusinessAllocationValue(){
  31. $prams = $this->request->param();
  32. return $this->success('', [OnlineCustomerService::getBusinessAllocationValue($prams['business_type'],$prams['business_id'])], 1, 1);
  33. }
  34. // 向客服发送消息提醒 $business_type = 地区编码+业务类型 consultation_notific service_work_notific
  35. public function customerSendMessage(){
  36. $prams = $this->request->param();
  37. return $this->success('', [OnlineCustomerService::customerSendMessage($prams['admin_id'],$prams['business_type'],$prams['business_id'])], 1, 1);
  38. }*/
  39. public function assignBusinessToCustomer(){
  40. $prams = $this->request->param();
  41. return $this->success('', [OnlineCustomerService::assignBusinessToCustomer($prams['business_type'],$prams['business_id'])], 1, 1);
  42. }
  43. public function customerClsMessage(){
  44. $prams = $this->request->param();
  45. return $this->success('', [OnlineCustomerService::customerClsMessage($prams['business_type'],$prams['business_id'])], 1, 1);
  46. }
  47. public function getNotificList(){
  48. $prams = $this->request->param();
  49. return $this->success('', OnlineCustomerService::getNotificList($prams['admin_id'],$prams['business_type']), 1, 1);
  50. }
  51. public function getAllNotificList(){
  52. $prams = $this->request->param();
  53. return $this->success('', OnlineCustomerService::getAllNotificList($prams['admin_id'],['consultation','servicework'],$prams['prefix']??'',$prams['is_test']??0), 1, 1);
  54. }
  55. }