|
|
@@ -90,7 +90,26 @@ class NoticeController extends BaseAdminController
|
|
|
}
|
|
|
return $this->fail(NoticeLogic::getError());
|
|
|
}
|
|
|
-
|
|
|
+ public function isOnline()
|
|
|
+ {
|
|
|
+ $params = $this->request->post();
|
|
|
+ $params['admin_id'] = $this->adminId??0;
|
|
|
+ return $this->success('', ['is_online' => OnlineCustomerService::isOnline($params['admin_id'])?1:0]);
|
|
|
+ }
|
|
|
+ public function serviceOnline()
|
|
|
+ {
|
|
|
+ $params = $this->request->post();
|
|
|
+ $params['admin_id'] = $this->adminId??0;
|
|
|
+ $result = OnlineCustomerService::addOnlineCustomerService($params['admin_id']);
|
|
|
+ return $this->success('', $result?:[]);
|
|
|
+ }
|
|
|
+ public function serviceOffline()
|
|
|
+ {
|
|
|
+ $params = $this->request->post();
|
|
|
+ $params['admin_id'] = $this->adminId??0;
|
|
|
+ $result = OnlineCustomerService::subOnlineCustomerService($params['admin_id']);
|
|
|
+ return $this->success('', $result?:[]);
|
|
|
+ }
|
|
|
public function getUnifiedNotific()
|
|
|
{
|
|
|
$params = $this->request->post();
|