1
This commit is contained in:
parent
3a1631112f
commit
9a5746e0d5
@ -14,5 +14,9 @@
|
|||||||
{
|
{
|
||||||
"switch_name": "heroPieceSyn",
|
"switch_name": "heroPieceSyn",
|
||||||
"switch_desc": "合成英雄碎片"
|
"switch_desc": "合成英雄碎片"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"switch_name": "shop",
|
||||||
|
"switch_desc": "商店"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -27,6 +27,25 @@ func GetAccountIdByAddress(accountAddress string) string {
|
|||||||
return accountId
|
return accountId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetAccountIdByEmail(email string) string {
|
||||||
|
accountId := ""
|
||||||
|
f5.GetGoStyleDb().OrmSelectOne(
|
||||||
|
constant.ACCOUNT_DB,
|
||||||
|
"t_immutable_account",
|
||||||
|
[][]string {
|
||||||
|
{"email", email},
|
||||||
|
},
|
||||||
|
func (err error, ds *f5.DataSet) {
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if ds.Next() {
|
||||||
|
accountId = ds.GetByName("account_id")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return accountId
|
||||||
|
}
|
||||||
|
|
||||||
func AccountIdExistsAndIgnoreError(accountId string) bool {
|
func AccountIdExistsAndIgnoreError(accountId string) bool {
|
||||||
isExists := false
|
isExists := false
|
||||||
f5.GetGoStyleDb().OrmSelectOne(
|
f5.GetGoStyleDb().OrmSelectOne(
|
||||||
|
@ -48,6 +48,7 @@ func (this *recharge) deliverGoods(ds *f5.DataSet) bool {
|
|||||||
passportAddress := ds.GetByName("passport_address")
|
passportAddress := ds.GetByName("passport_address")
|
||||||
diamond := q5.ToInt64(ds.GetByName("diamond"))
|
diamond := q5.ToInt64(ds.GetByName("diamond"))
|
||||||
netId := q5.ToInt32(ds.GetByName("net_id"))
|
netId := q5.ToInt32(ds.GetByName("net_id"))
|
||||||
|
//email := ds.GetByName("email")
|
||||||
accountId := service.GetAccountIdByAddress(passportAddress)
|
accountId := service.GetAccountIdByAddress(passportAddress)
|
||||||
if accountId == "" {
|
if accountId == "" {
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user