1
This commit is contained in:
parent
8ea2c287fe
commit
e3f46eb356
@ -5,6 +5,7 @@ import (
|
|||||||
"f5"
|
"f5"
|
||||||
"main/constant"
|
"main/constant"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"jccommon"
|
"jccommon"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -29,20 +30,23 @@ func GetAccountIdByAddress(accountAddress string) string {
|
|||||||
|
|
||||||
func GetAccountIdByEmail(email string) string {
|
func GetAccountIdByEmail(email string) string {
|
||||||
accountId := ""
|
accountId := ""
|
||||||
f5.GetGoStyleDb().OrmSelectOne(
|
email = strings.ToLower(email)
|
||||||
constant.ACCOUNT_DB,
|
if email != "" {
|
||||||
"t_immutable_account",
|
f5.GetGoStyleDb().OrmSelectOne(
|
||||||
[][]string {
|
constant.ACCOUNT_DB,
|
||||||
{"email", email},
|
"t_immutable_account",
|
||||||
},
|
[][]string {
|
||||||
func (err error, ds *f5.DataSet) {
|
{"lower_case_email", email},
|
||||||
if err != nil {
|
},
|
||||||
return
|
func (err error, ds *f5.DataSet) {
|
||||||
}
|
if err != nil {
|
||||||
if ds.Next() {
|
return
|
||||||
accountId = ds.GetByName("account_id")
|
}
|
||||||
}
|
if ds.Next() {
|
||||||
})
|
accountId = ds.GetByName("account_id")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
return accountId
|
return accountId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user