From 9eac3af283eb94d5695d4b148f1f34bb1025a96c Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 23 Jan 2024 19:08:59 +0800 Subject: [PATCH] by Robin at 20240123; return_url alteration --- app/mix/service/service.go | 8 +++++++- dbstruct/vas.sql | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/mix/service/service.go b/app/mix/service/service.go index 0fdb6222..c9e90c49 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -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) { - req.ReturnUrl = "https://tiefen.fun/pay" + switch req.ProductId { + case dbstruct.ProductIdMembership: + req.ReturnUrl = "https://tiefen.fun/vip" + default: + req.ReturnUrl = "https://tiefen.fun/pay" + } + data, err := _DefaultVas.CreateOrder(ctx, req) ec, err = errs.DealVasErr(err) if err != nil { diff --git a/dbstruct/vas.sql b/dbstruct/vas.sql index f27f9653..ea40cdaa 100644 --- a/dbstruct/vas.sql +++ b/dbstruct/vas.sql @@ -137,6 +137,8 @@ CREATE TABLE `vas_withdraw_order` ); CREATE INDEX ix_mid_applytime ON vas_withdraw_order (mid, apply_time); + + CREATE TABLE `vas_user_membership_unlock` ( `id` bigint AUTO_INCREMENT COMMENT 'id',