修复无法清除通知的问题
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("操作失败,请稍候再试!");
|
$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
|
* @throws \Exception
|
||||||
@ -116,7 +125,6 @@ class Notify extends BasicApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除指定资源
|
* 删除指定资源
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user