Bläddra i källkod

update 区块星链

tags/v3.5.6
DengBiao 2 år sedan
förälder
incheckning
2eff5fb78d
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. +8
    -1
      rule/block_star_chain_settlement.go

+ 8
- 1
rule/block_star_chain_settlement.go Visa fil

@@ -869,7 +869,14 @@ func DealUserCoin(session *xorm.Session, req md.DealUserCoinReq) (err error) {
if err != nil {
return err
}
return errors.New("用户" + coin.Name + "不足")
zhios_order_relate_utils.FilePutContents("virtual_coin_not", zhios_order_relate_utils.SerializeStr(map[string]interface{}{
"uid": userVirtualCoinFlow.Uid,
"amount": userVirtualCoinFlow.Amout,
"before_amount": userVirtualCoinFlow.BeforeAmout,
"after_amount": userVirtualCoinFlow.AfterAmout,
"coin_id": userVirtualCoinFlow.CoinId,
}))
return errors.New("用户" + zhios_order_relate_utils.IntToStr(userVirtualCoinFlow.Uid) + "的" + coin.Name + "不足")
}
//3、插入 `user_virtual_coin_flow` 记录
_, err = db.UserVirtualCoinFlowInsert(session, &userVirtualCoinFlow)


Laddar…
Avbryt
Spara