|
|
@@ -282,9 +282,19 @@ func DealIntegralReleaseInterpositionUserAmount(session *xorm.Session, req md.De |
|
|
|
"key": "uid", |
|
|
|
"value": req.Uid, |
|
|
|
}) |
|
|
|
if err != nil && err.Error() == "not found" { |
|
|
|
userAmount = &model.IntegralReleaseInterpositionUserAmount{ |
|
|
|
Uid: req.Uid, |
|
|
|
CoinId: req.CoinId, |
|
|
|
CreateAt: now, |
|
|
|
UpdateAt: now, |
|
|
|
} |
|
|
|
_, err = db.IntegralReleaseInterpositionUserAmountInsert(session, userAmount) |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
totalAmountValue := decimal.NewFromFloat(zhios_order_relate_utils.StrToFloat64(userAmount.TotalAmount)) |
|
|
|
waiteAmountValue := decimal.NewFromFloat(zhios_order_relate_utils.StrToFloat64(userAmount.WaiteAmount)) |
|
|
|
alreadyAmountValue := decimal.NewFromFloat(zhios_order_relate_utils.StrToFloat64(userAmount.AlreadyAmount)) |
|
|
|