diff --git a/server/marketserver/api/v1/vip/vip.go b/server/marketserver/api/v1/vip/vip.go index 35cd8081..8f3b2369 100644 --- a/server/marketserver/api/v1/vip/vip.go +++ b/server/marketserver/api/v1/vip/vip.go @@ -21,12 +21,13 @@ func (this *VIPApi) Info(c *gin.Context) { ContributionPoint string `json:"contribution_point"` Info struct { BindPassport string `json:"bind_passport_address"` + Email string `json:"bind_email"` } `json:"info"` }{} { var dbErr error - sql := "SELECT passport_address FROM t_vip_bind WHERE account_address = ?;" + sql := "SELECT passport_address,lower_case_email FROM t_vip_bind WHERE account_address = ?;" params := []string{ accountAddress, } @@ -41,6 +42,7 @@ func (this *VIPApi) Info(c *gin.Context) { } if ds.Next() { rspObj.Info.BindPassport = ds.GetByIndex(0) + rspObj.Info.Email = ds.GetByIndex(1) } })