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