mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
渠道码分类下有渠道码,无法删除
This commit is contained in:
parent
1dd4da9a78
commit
abb3b17a51
@ -69,6 +69,8 @@ class WechatQrcodeCateServices extends BaseServices
|
||||
*/
|
||||
public function delCate($id = 0)
|
||||
{
|
||||
$count = app()->make(WechatQrcodeServices::class)->count(['cate_id' => $id]);
|
||||
if ($count) throw new AdminException(400454);
|
||||
if (!$id) throw new AdminException(100100);
|
||||
$res = $this->dao->update($id, ['is_del' => 1]);
|
||||
if (!$res) throw new AdminException(100008);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user