This commit is contained in:
aozhiwei 2024-08-14 11:30:31 +08:00
parent 3a1631112f
commit 9a5746e0d5
3 changed files with 24 additions and 0 deletions

View File

@ -14,5 +14,9 @@
{
"switch_name": "heroPieceSyn",
"switch_desc": "合成英雄碎片"
},
{
"switch_name": "shop",
"switch_desc": "商店"
}
]

View File

@ -27,6 +27,25 @@ func GetAccountIdByAddress(accountAddress string) string {
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 {
isExists := false
f5.GetGoStyleDb().OrmSelectOne(

View File

@ -48,6 +48,7 @@ func (this *recharge) deliverGoods(ds *f5.DataSet) bool {
passportAddress := ds.GetByName("passport_address")
diamond := q5.ToInt64(ds.GetByName("diamond"))
netId := q5.ToInt32(ds.GetByName("net_id"))
//email := ds.GetByName("email")
accountId := service.GetAccountIdByAddress(passportAddress)
if accountId == "" {
return true