by Robin at 20240123; return_url alteration

This commit is contained in:
Leufolium 2024-01-23 19:08:59 +08:00
parent 415c71f150
commit 9eac3af283
2 changed files with 9 additions and 1 deletions

View File

@ -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) {
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 {

View File

@ -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',