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('请先登陆'); }