Merge pull request 'by Robin at 20240123; return_url alteration' (#70) from feat-20240121-001-Robin into test
Reviewed-on: #70
This commit is contained in:
commit
af8763e8d8
|
@ -948,7 +948,13 @@ func (s *Service) GetCoinsProductList(ctx *gin.Context, req *vasproto.GetCoinsPr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (data *vasproto.CreateOrderData, ec errcode.ErrCode) {
|
func (s *Service) CreateOrder(ctx *gin.Context, req *vasproto.CreateOrderReq) (data *vasproto.CreateOrderData, ec errcode.ErrCode) {
|
||||||
|
switch req.ProductId {
|
||||||
|
case dbstruct.ProductIdMembership:
|
||||||
|
req.ReturnUrl = "https://tiefen.fun/vip"
|
||||||
|
default:
|
||||||
req.ReturnUrl = "https://tiefen.fun/pay"
|
req.ReturnUrl = "https://tiefen.fun/pay"
|
||||||
|
}
|
||||||
|
|
||||||
data, err := _DefaultVas.CreateOrder(ctx, req)
|
data, err := _DefaultVas.CreateOrder(ctx, req)
|
||||||
ec, err = errs.DealVasErr(err)
|
ec, err = errs.DealVasErr(err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -137,6 +137,8 @@ CREATE TABLE `vas_withdraw_order`
|
||||||
);
|
);
|
||||||
CREATE INDEX ix_mid_applytime ON vas_withdraw_order (mid, apply_time);
|
CREATE INDEX ix_mid_applytime ON vas_withdraw_order (mid, apply_time);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `vas_user_membership_unlock`
|
CREATE TABLE `vas_user_membership_unlock`
|
||||||
(
|
(
|
||||||
`id` bigint AUTO_INCREMENT COMMENT 'id',
|
`id` bigint AUTO_INCREMENT COMMENT 'id',
|
||||||
|
|
Loading…
Reference in New Issue