From a049c422c0d8bf25e827361897445da2e8eaeb00 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 9 Sep 2023 16:11:28 +0800 Subject: [PATCH] update --- app/db/db_user_identity.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/db/db_user_identity.go b/app/db/db_user_identity.go index b0d0ee9..bb7f4c0 100644 --- a/app/db/db_user_identity.go +++ b/app/db/db_user_identity.go @@ -4,7 +4,6 @@ import ( "applet/app/db/model" "applet/app/enum" "applet/app/utils/logx" - "errors" "reflect" "xorm.io/xorm" ) @@ -60,9 +59,9 @@ func (userIdentityDb *UserIdentityDb) UserIdentityExistV1(enterpriseId int, name if err1 != nil { return nil, err } - if class == nil { - return nil, errors.New("当前学生身份待管理员确认") - } + //if class == nil { + // return nil, errors.New("当前学生身份待管理员确认") + //} if class.ClassId == classId { return m, nil }