This commit is contained in:
苏尹岚
2020-10-27 16:40:54 +08:00
parent f1db21b302
commit b7e25130ce

View File

@@ -542,7 +542,7 @@ func InvestMember(ctx *jxcontext.Context, memberID int) (errCode string, err err
}
}
if userBill.AccountBalance < memberCard.Price {
return model.ErrCodeAccountBalanceNotEnough, err
return model.ErrCodeAccountBalanceNotEnough, fmt.Errorf("用户余额不足,请充值!")
}
dao.Begin(db)
defer func() {