Sfoglia il codice sorgente

update 区块星链

tags/v3.5.6
DengBiao 2 anni fa
parent
commit
2eff5fb78d
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +8
    -1
      rule/block_star_chain_settlement.go

+ 8
- 1
rule/block_star_chain_settlement.go Vedi 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)


Caricamento…
Annulla
Salva