From 67b315f74eb1a68d2f58b3e601da75269c49675f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 8 Nov 2023 14:07:12 +0800 Subject: [PATCH] 1 --- app/customer/hdl/hdl_user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/customer/hdl/hdl_user.go b/app/customer/hdl/hdl_user.go index 90d4830..6a172b0 100644 --- a/app/customer/hdl/hdl_user.go +++ b/app/customer/hdl/hdl_user.go @@ -48,7 +48,11 @@ func UserInfo(c *gin.Context) { } now := time.Now() - if c.GetHeader("platform") != "wx_applet" && v.Enterprise.Pvd == enum.EnterprisePvdForFaceScanPayment && v.Enterprise.Mode == enum.EnterpriseModeForSchool { + if v.Enterprise.Pvd == enum.EnterprisePvdForFaceScanPayment && v.Enterprise.Mode == enum.EnterpriseModeForSchool { + if c.GetHeader("platform") != "wx_applet" { + //TODO::微信小程序直接过滤 + continue + } if v.UserIdentity.Identity == enum.UserIdentityForSelfSupportForWorker { //TODO::自营-工作人员 selfSupportForUserFaceInfoDb := db.SelfSupportForUserFaceInfoDb{}