diff --git a/plugin/admin/app/controller/StudentController.php b/plugin/admin/app/controller/StudentController.php index 5fd78a5..2ca6cf8 100644 --- a/plugin/admin/app/controller/StudentController.php +++ b/plugin/admin/app/controller/StudentController.php @@ -257,7 +257,8 @@ class StudentController extends Crud } $res = $student->save([ - 'openid' => '' + 'openid' => '', + 'avatar' => '', ]); if (!$res) { throw new Exception('重置失败'); diff --git a/plugin/admin/app/controller/StudentParentController.php b/plugin/admin/app/controller/StudentParentController.php index e2684e0..30f443f 100644 --- a/plugin/admin/app/controller/StudentParentController.php +++ b/plugin/admin/app/controller/StudentParentController.php @@ -183,7 +183,8 @@ class StudentParentController extends Crud } $res = $parent->save([ - 'openid' => '' + 'openid' => '', + 'avatar' => '', ]); if (!$res) { throw new Exception('重置失败'); diff --git a/plugin/admin/app/controller/TeacherController.php b/plugin/admin/app/controller/TeacherController.php index b3afd1d..0346708 100644 --- a/plugin/admin/app/controller/TeacherController.php +++ b/plugin/admin/app/controller/TeacherController.php @@ -351,7 +351,10 @@ class TeacherController extends Crud throw new Exception('未找到教师信息'); } - $res = $teacher->save(['openid' => '']); + $res = $teacher->save([ + 'openid' => '', + 'avatar' => '', + ]); if(!$res){ throw new Exception('操作失败'); }