更新
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\controller;
|
||||
|
||||
use app\api\logic\ChatNotifyLogic;
|
||||
|
||||
/**
|
||||
* 聊天通知接口(管理端-医生)
|
||||
*/
|
||||
class ChatController extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取当前医生的患者打开会话通知
|
||||
* 轮询接口,获取后即消费
|
||||
*/
|
||||
public function notifications()
|
||||
{
|
||||
$doctorId = $this->adminId;
|
||||
if ($doctorId <= 0) {
|
||||
return $this->success('', []);
|
||||
}
|
||||
$list = ChatNotifyLogic::getNotifies($doctorId, true);
|
||||
return $this->success('', $list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user