bind email
This commit is contained in:
parent
53f84a4473
commit
17ebffa157
@ -21,12 +21,13 @@ func (this *VIPApi) Info(c *gin.Context) {
|
|||||||
ContributionPoint string `json:"contribution_point"`
|
ContributionPoint string `json:"contribution_point"`
|
||||||
Info struct {
|
Info struct {
|
||||||
BindPassport string `json:"bind_passport_address"`
|
BindPassport string `json:"bind_passport_address"`
|
||||||
|
Email string `json:"bind_email"`
|
||||||
} `json:"info"`
|
} `json:"info"`
|
||||||
}{}
|
}{}
|
||||||
|
|
||||||
{
|
{
|
||||||
var dbErr error
|
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{
|
params := []string{
|
||||||
accountAddress,
|
accountAddress,
|
||||||
}
|
}
|
||||||
@ -41,6 +42,7 @@ func (this *VIPApi) Info(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
if ds.Next() {
|
if ds.Next() {
|
||||||
rspObj.Info.BindPassport = ds.GetByIndex(0)
|
rspObj.Info.BindPassport = ds.GetByIndex(0)
|
||||||
|
rspObj.Info.Email = ds.GetByIndex(1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user