fix checkwlt

This commit is contained in:
lwl0608 2024-04-16 22:14:40 +08:00
parent d731659a50
commit f5e7265d23
1 changed files with 0 additions and 3 deletions

View File

@ -329,9 +329,6 @@ func (v *Vas) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (data
} }
func (v *Vas) CheckWalletExist(ctx *gin.Context, tx *sqlx.Tx, mid int64) (wallet *dbstruct.Wallet, exist bool) { func (v *Vas) CheckWalletExist(ctx *gin.Context, tx *sqlx.Tx, mid int64) (wallet *dbstruct.Wallet, exist bool) {
if mid <= 0 {
return
}
wallet, err := v.store.GetWalletByMid(ctx, tx, mid) wallet, err := v.store.GetWalletByMid(ctx, tx, mid)
switch err { switch err {
case sql.ErrNoRows: case sql.ErrNoRows: