order from

This commit is contained in:
lwl0608 2024-08-07 14:08:24 +08:00
parent 68632997c9
commit 3c1841d8d9
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ const (
const ( const (
CreateOrderFromApp = "app" CreateOrderFromApp = "app"
CreateOrderFromH5 = "h5" CreateOrderFromH5 = "h5"
CreateOrderFromWeb = "web"
) )
type CreateOrderReq struct { type CreateOrderReq struct {

View File

@ -1132,6 +1132,9 @@ func (s *Service) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (d
default: default:
req.ReturnUrl = "https://tiefen.fun/pay" req.ReturnUrl = "https://tiefen.fun/pay"
} }
if req.From == vasproto.CreateOrderFromWeb {
req.ReturnUrl = ""
}
data, err = _DefaultVas.CreateOrder(ctx, req) data, err = _DefaultVas.CreateOrder(ctx, req)
ec, err = errs.DealVasErr(err) ec, err = errs.DealVasErr(err)