huangjiajun 1 month ago
parent
commit
0afdd977ed
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      app/store/hdl/hdl_user.go

+ 7
- 5
app/store/hdl/hdl_user.go View File

@@ -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


Loading…
Cancel
Save