mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
主播删除之后无法重新添加问题修复
This commit is contained in:
parent
ce10226f07
commit
7223604699
@ -92,10 +92,13 @@ class LiveAnchorServices extends BaseServices
|
||||
* @param int $id
|
||||
* @param array $data
|
||||
* @return mixed
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function save(int $id, array $data)
|
||||
{
|
||||
$liveAnchor = $this->dao->get(['wechat' => $data['wechat']]);
|
||||
$liveAnchor = $this->dao->get(['wechat' => $data['wechat'], 'is_del' => 0]);
|
||||
if (!MiniProgramService::getRoleList(2, 0, 30, $data['wechat'])) {
|
||||
throw new AdminException(400426);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user