更新学校

This commit is contained in:
yyh931018@qq.com
2022-09-29 14:03:34 +08:00
parent 9bdbfd53d1
commit c155930d70
2 changed files with 8 additions and 0 deletions

View File

@@ -228,6 +228,12 @@ class Group extends Backend
//根据等级直接分配权限
$params['rules'] = $this->rules[$params['level']];
if ($params) {
if($params['level'] == 4){
//学校
db('student')->where('group_id',$ids)->update(array('school'=>$params['name']));
}
Db::startTrans();
try {
$row->save($params);