作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

规格bug修改

@@ -121,7 +121,7 @@ class Style extends Backend @@ -121,7 +121,7 @@ class Style extends Backend
121 $params = $this->preExcludeFields($params); 121 $params = $this->preExcludeFields($params);
122 122
123 if ($params['pid'] != $row['pid']) { 123 if ($params['pid'] != $row['pid']) {
124 - $childrenIds = Tree::instance()->init(collection(\app\common\model\style::select())->toArray())->getChildrenIds($row['id'], true); 124 + $childrenIds = Tree::instance()->init(collection($this->model->select())->toArray())->getChildrenIds($row['id'], true);
125 if (in_array($params['pid'], $childrenIds)) { 125 if (in_array($params['pid'], $childrenIds)) {
126 $this->error(__('父组别不能是它自己')); 126 $this->error(__('父组别不能是它自己'));
127 } 127 }