26 lines
566 B
PHP
26 lines
566 B
PHP
<?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);
|
|
}
|
|
}
|