From e58b42eefb508ad4499303245f0544393b6e1d15 Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 19 Sep 2024 15:52:44 +0800 Subject: [PATCH] fix bug --- app/common/service/StudentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/service/StudentService.php b/app/common/service/StudentService.php index c8fa795..68aba97 100644 --- a/app/common/service/StudentService.php +++ b/app/common/service/StudentService.php @@ -182,7 +182,7 @@ class StudentService public function updateOpenid($request) { try { - if (empty((array)$request->student) || empty((array)$request->parent)) { + if (empty((array)$request->student) && empty((array)$request->parent)) { throw new Exception('请先登陆'); }