瀏覽代碼

update 区块星链

tags/v3.5.6
DengBiao 2 年之前
父節點
當前提交
2eff5fb78d
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. +8
    -1
      rule/block_star_chain_settlement.go

+ 8
- 1
rule/block_star_chain_settlement.go 查看文件

@@ -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…
取消
儲存