|
|
@@ -22,13 +22,15 @@ import ( |
|
|
|
// @Router /api/v1/communityTeam/ownStore/user [GET] |
|
|
|
func User(c *gin.Context) { |
|
|
|
user := svc.GetUser(c) |
|
|
|
third_gd_web_app_key := db.SysCfgGet(c, "third_gd_web_app_key") |
|
|
|
res := map[string]string{ |
|
|
|
"head_img": user.Profile.AvatarUrl, |
|
|
|
"nickname": user.Info.Nickname, |
|
|
|
"phone": user.Info.Phone, |
|
|
|
"state": "0", |
|
|
|
"info": "", |
|
|
|
"store_type": "0", |
|
|
|
"head_img": user.Profile.AvatarUrl, |
|
|
|
"nickname": user.Info.Nickname, |
|
|
|
"phone": user.Info.Phone, |
|
|
|
"state": "0", |
|
|
|
"info": "", |
|
|
|
"store_type": "0", |
|
|
|
"third_gd_web_app_key": third_gd_web_app_key, |
|
|
|
} |
|
|
|
storeCheck := db.StoreAuditByUid(svc.MasterDb(c), user.Info.Uid) |
|
|
|
if storeCheck != nil { |
|
|
@@ -53,6 +55,14 @@ func User(c *gin.Context) { |
|
|
|
e.OutSuc(c, res, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
func GdKey(c *gin.Context) { |
|
|
|
third_gd_web_app_key := db.SysCfgGet(c, "third_gd_web_app_key") |
|
|
|
res := map[string]string{ |
|
|
|
"third_gd_web_app_key": third_gd_web_app_key, |
|
|
|
} |
|
|
|
e.OutSuc(c, res, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func Base(c *gin.Context) { |
|
|
|
user := svc.GetUser(c) |
|
|
|