This commit is contained in:
xiaoyu
2025-02-21 09:55:02 +08:00
parent 5d914c94a9
commit 949d921d56
+1 -1
View File
@@ -129,7 +129,7 @@ class CluesCfrom extends HD_Controller
}
$re = $this->mdCluesCfrom->get(array('type' => 1, 'pid' => 0, "status" => 1));
if ($re && $re['id'] != $params['id']) {
if ($re && $params['type'] == 1) {
return $this->show_json(SYS_CODE_FAIL, '门店分类最多存在一个!');
}
$this->mdCluesCfrom->update(['title' => $params['name'], 'type' => $params['type'],'sort' => $params['sort']], ['id' => $params['id']]);