This commit is contained in:
parent
47c0f1aafc
commit
36e47dd488
@ -5,6 +5,7 @@ import (
|
||||
"main/constant"
|
||||
"main/service"
|
||||
"q5"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@ -71,6 +72,7 @@ func (this *VIPApi) Bind(c *gin.Context) {
|
||||
|
||||
info := map[string]interface{}{}
|
||||
info["account_address"] = ""
|
||||
info["email"] = ""
|
||||
service.JwtAuth.JwtAuthHandle(reqObj.Passport_jwt, &info)
|
||||
passport_addr := info["account_address"].(string)
|
||||
if passport_addr == "" || accountAddress == passport_addr {
|
||||
@ -78,6 +80,8 @@ func (this *VIPApi) Bind(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
email := info["email"].(string)
|
||||
|
||||
bound := false
|
||||
{
|
||||
var dbErr error
|
||||
@ -121,6 +125,8 @@ func (this *VIPApi) Bind(c *gin.Context) {
|
||||
[][]string{
|
||||
{"account_address", accountAddress},
|
||||
{"passport_address", passport_addr},
|
||||
{"email", email},
|
||||
{"lower_case_email", strings.ToLower(email)},
|
||||
{"createtime", q5.ToString(ts)},
|
||||
{"modifytime", q5.ToString(ts)},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user