Merge branch 'feat-IRONFANS-70' into test
This commit is contained in:
commit
bc72a80687
|
@ -492,19 +492,15 @@ func (v *Vas) calcAndUpdateIncome(ctx *gin.Context, tx *sqlx.Tx, streamerMid, ui
|
|||
}
|
||||
logger.Info("incomeList: %v", util.ToJson(list))
|
||||
|
||||
// 检查所有人钱包
|
||||
for _, ii := range list {
|
||||
_, exists := v.CheckWalletExist(ctx, tx, ii.Mid)
|
||||
if !exists {
|
||||
err = errs.ErrVasWalletNotExist
|
||||
return make([]IncomeInfo, 0), err
|
||||
}
|
||||
}
|
||||
|
||||
// 写记录
|
||||
for _, ii := range list {
|
||||
// 写消费记录
|
||||
wallet, _ := v.CheckWalletExist(ctx, tx, ii.Mid)
|
||||
if wallet == nil {
|
||||
logger.Error("CheckWalletExist fail, mid: %v", ii.Mid)
|
||||
err = errs.ErrVasWalletNotExist
|
||||
return make([]IncomeInfo, 0), err
|
||||
}
|
||||
ch := &dbstruct.ConsumeHistory{
|
||||
Mid: goproto.Int64(ii.Mid),
|
||||
Uid: goproto.Int64(uid),
|
||||
|
|
Loading…
Reference in New Issue