order from
This commit is contained in:
parent
68632997c9
commit
3c1841d8d9
|
@ -49,6 +49,7 @@ const (
|
||||||
const (
|
const (
|
||||||
CreateOrderFromApp = "app"
|
CreateOrderFromApp = "app"
|
||||||
CreateOrderFromH5 = "h5"
|
CreateOrderFromH5 = "h5"
|
||||||
|
CreateOrderFromWeb = "web"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateOrderReq struct {
|
type CreateOrderReq struct {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue