From 0afdd977ed502b8d20fbca68624aa1b845cf085a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 26 Sep 2024 10:02:42 +0800 Subject: [PATCH] 1 --- app/store/hdl/hdl_user.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/store/hdl/hdl_user.go b/app/store/hdl/hdl_user.go index d50c29f..2c5c1e5 100644 --- a/app/store/hdl/hdl_user.go +++ b/app/store/hdl/hdl_user.go @@ -23,11 +23,12 @@ import ( func User(c *gin.Context) { user := svc.GetUser(c) res := map[string]string{ - "head_img": user.Profile.AvatarUrl, - "nickname": user.Info.Nickname, - "phone": user.Info.Phone, - "state": "0", - "info": "", + "head_img": user.Profile.AvatarUrl, + "nickname": user.Info.Nickname, + "phone": user.Info.Phone, + "state": "0", + "info": "", + "store_type": "0", } storeCheck := db.StoreAuditByUid(svc.MasterDb(c), user.Info.Uid) if storeCheck != nil { @@ -47,6 +48,7 @@ func User(c *gin.Context) { } else if storeCheck != nil && storeCheck.State == 2 { res["state"] = "3" } + res["store_type"] = utils.IntToStr(userParty.StoreType) } e.OutSuc(c, res, nil) return