fix checkwlt
This commit is contained in:
parent
d731659a50
commit
f5e7265d23
|
@ -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) {
|
||||
if mid <= 0 {
|
||||
return
|
||||
}
|
||||
wallet, err := v.store.GetWalletByMid(ctx, tx, mid)
|
||||
switch err {
|
||||
case sql.ErrNoRows:
|
||||
|
|
Loading…
Reference in New Issue