This commit is contained in:
aozhiwei 2024-08-17 15:20:48 +08:00
parent e3c3eb4238
commit 04aa588ab5

View File

@ -47,11 +47,14 @@ func (this *recharge) deliverGoods(ds *f5.DataSet) bool {
orderId := ds.GetByName("order_id")
shortOrderId := q5.ToInt64(ds.GetByName("short_order_id"))
passportAddress := ds.GetByName("passport_address")
diamond := q5.ToInt64(ds.GetByName("diamond"))
srcDiamond := q5.ToInt64(ds.GetByName("diamond"))
presentDiamond := q5.ToInt64(ds.GetByName("present_diamond"))
returnContribution := q5.ToFloat64(ds.GetByName("return_contribution"))
netId := q5.ToInt32(ds.GetByName("net_id"))
payTime := q5.ToInt32(ds.GetByName("pay_time"))
email := ds.GetByName("lower_case_email")
diamond := srcDiamond + presentDiamond
accountId := ""
userIdentity := ""
if email != "" {
@ -100,5 +103,20 @@ func (this *recharge) markOk(idx int64, deliveryAccountId string) error {
func (this *recharge) returnContribution(netId int32, shortOrderId int64,
userIdentity string, contribution float64, payTime int32) error {
return nil
var resultErr error
f5.GetGoStyleDb().Upsert(
constant.BCNFT_DB,
"t_recharge_return_contribution",
[][]string{
},
[][]string{
},
[][]string{
{"delivery_status", q5.ToString(jccommon.RECHARGE_ORDER_DELIVERY_STATUS_OK)},
{"delivery_time", q5.ToString(f5.GetApp().GetRealSeconds())},
},
func (err error, lastInsertId int64, rowsAffected int64) {
resultErr = err
})
return resultErr
}