Browse Source

update 区块星链

tags/v3.5.6
DengBiao 2 years ago
parent
commit
2eff5fb78d
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      rule/block_star_chain_settlement.go

+ 8
- 1
rule/block_star_chain_settlement.go View File

@@ -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)


Loading…
Cancel
Save