修复无法清除通知的问题
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
4f3c02fda5
commit
c5e88307bd
@ -84,6 +84,15 @@ class Notify extends BasicApi
|
||||
$this->error("操作失败,请稍候再试!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 清空所有消息
|
||||
*/
|
||||
public function _clearAll()
|
||||
{
|
||||
\app\common\Model\Notify::update(['is_read' => 1, 'read_time' => nowTime()], ['to' => getCurrentMember()['code'], 'is_read' => 0]);
|
||||
$this->success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @throws \Exception
|
||||
@ -116,11 +125,10 @@ class Notify extends BasicApi
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 删除指定资源
|
||||
*
|
||||
* @param int $id
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function delete($id = 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user