diff --git a/app/mix/service/service.go b/app/mix/service/service.go index 98d05b72..042af0d6 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 d53d26c4..ecc858c3 100644 --- a/dbstruct/vas.sql +++ b/dbstruct/vas.sql @@ -138,6 +138,7 @@ CREATE TABLE `vas_withdraw_order` CREATE INDEX ix_mid_applytime ON vas_withdraw_order (mid, apply_time); + CREATE TABLE `vas_withdraw_diamonds_his` ( `id` bigint AUTO_INCREMENT COMMENT 'id',