1
This commit is contained in:
parent
ae6d441dc3
commit
b822d8e8cf
@ -18,8 +18,11 @@ func (this *UserApi) Info(c *gin.Context) {
|
|||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
ErrCode int32 `json:"errcode"`
|
ErrCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
|
NickName string `json:"nickname"`
|
||||||
|
Email string `json:"email"`
|
||||||
ContributionPoint string `json:"contribution_point"`
|
ContributionPoint string `json:"contribution_point"`
|
||||||
Gold string `json:"gold"`
|
Gold string `json:"gold"`
|
||||||
|
Diamond string `json:"diamond"`
|
||||||
}{
|
}{
|
||||||
}
|
}
|
||||||
var contributionPoint float64
|
var contributionPoint float64
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"q5"
|
||||||
"f5"
|
"f5"
|
||||||
"main/constant"
|
"main/constant"
|
||||||
)
|
)
|
||||||
@ -10,14 +11,28 @@ func AddRechargeOrder(accountId string, orderId string, shortOrderId string,
|
|||||||
currencyAddress string, currencyName string, itemId int32, itemNum int64,
|
currencyAddress string, currencyName string, itemId int32, itemNum int64,
|
||||||
price string) bool {
|
price string) bool {
|
||||||
ok := false
|
ok := false
|
||||||
|
nowTime := f5.GetApp().GetRealSeconds()
|
||||||
f5.GetGoStyleDb().UpsertEx(
|
f5.GetGoStyleDb().UpsertEx(
|
||||||
constant.BCNFT_DB,
|
constant.BCNFT_DB,
|
||||||
"t_recharge_order",
|
"t_recharge_order",
|
||||||
[][]string{
|
[][]string{
|
||||||
|
{"short_order_id", shortOrderId},
|
||||||
},
|
},
|
||||||
[][]string{
|
[][]string{
|
||||||
},
|
},
|
||||||
[][]string{
|
[][]string{
|
||||||
|
{"account_id", accountId},
|
||||||
|
{"order_id", orderId},
|
||||||
|
{"short_order_id", shortOrderId},
|
||||||
|
{"account_address", accountAddress},
|
||||||
|
{"passport_address", passportAddress},
|
||||||
|
{"currency_name", currencyName},
|
||||||
|
{"currency_address", currencyAddress},
|
||||||
|
{"item_id", q5.ToString(itemId)},
|
||||||
|
{"item_num", q5.ToString(itemNum)},
|
||||||
|
{"price", price},
|
||||||
|
{"createtime", q5.ToString(nowTime)},
|
||||||
|
{"modifytime", q5.ToString(nowTime)},
|
||||||
},
|
},
|
||||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||||
ok = err == nil
|
ok = err == nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user