order from
This commit is contained in:
parent
68632997c9
commit
3c1841d8d9
|
@ -49,6 +49,7 @@ const (
|
|||
const (
|
||||
CreateOrderFromApp = "app"
|
||||
CreateOrderFromH5 = "h5"
|
||||
CreateOrderFromWeb = "web"
|
||||
)
|
||||
|
||||
type CreateOrderReq struct {
|
||||
|
|
|
@ -1132,6 +1132,9 @@ func (s *Service) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (d
|
|||
default:
|
||||
req.ReturnUrl = "https://tiefen.fun/pay"
|
||||
}
|
||||
if req.From == vasproto.CreateOrderFromWeb {
|
||||
req.ReturnUrl = ""
|
||||
}
|
||||
|
||||
data, err = _DefaultVas.CreateOrder(ctx, req)
|
||||
ec, err = errs.DealVasErr(err)
|
||||
|
|
Loading…
Reference in New Issue