cfrom
This commit is contained in:
@@ -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']]);
|
||||
|
||||
Reference in New Issue
Block a user