From cb42fec068238c5b17e821c2070cc98bdd2400fc Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 19 Sep 2024 15:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/admin/app/controller/StudentController.php | 3 ++- plugin/admin/app/controller/StudentParentController.php | 3 ++- plugin/admin/app/controller/TeacherController.php | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) 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('操作失败'); }