Merge branch 'dev_fi_xxx' into test

This commit is contained in:
lwl0608 2024-11-08 16:40:06 +08:00
commit 71229486fb
3 changed files with 9 additions and 6 deletions

View File

@ -3002,7 +3002,7 @@ func (s *Service) ApiGetZoneListByMid(ctx *gin.Context, req *zoneproto.ApiListBy
logger.Info("_ZU mid: %v, zid: %v, zidZuMapTmp: %v", req.BaseRequest.Mid, zid, util.ToJson(zidZuMapTmp))
if zu, ok := zidZuMapTmp[zid]; ok {
logger.Info("_ZU mid: %v, zid: %v, zu: %v", req.BaseRequest.Mid, zid, util.ToJson(zu))
if time.Now().Unix()-zu.GetAdmissionCt() < 3600*2 {
if time.Now().Unix()-zu.GetAdmissionCt() < 3600*48 {
refundEnable = 1
}
if zu.GetAdmissionUnlockType() == dbstruct.ZoneUnlockTypeRefund {

View File

@ -10,6 +10,7 @@ import (
"service/bizcommon/util"
"service/dbstruct"
"service/library/logger"
"service/library/payclients/alipaycli"
"service/library/redis"
"time"
@ -1089,6 +1090,9 @@ func (v *Vas) ZoneRefund(ctx *gin.Context, req *vasproto.ZoneRefundReq) error {
logger.Error("get zone admission order info fail, mid: %v, zid: %v, orderId: %v, err: %v", req.Mid, req.Zid, zv.GetAdmissionOrderId(), err)
return err
}
if order.GetOid3() == alipaycli.AppIdMiYuanTianShi {
return fmt.Errorf("订单正在处理请24小时后重试")
}
// 退款
err = v.RefundOrder(ctx, &vasproto.RefundOrderReq{

View File

@ -6,7 +6,6 @@ import (
"fmt"
"github.com/go-pay/gopay"
"github.com/go-pay/gopay/alipay"
"math/rand"
"net/http"
"service/bizcommon/util"
"service/library/configcenter"
@ -28,10 +27,10 @@ const (
var allAlipayClients = map[string]*AlipayClient{}
func GetDefaultAlipayClient() *AlipayClient {
rate := rand.Intn(100)
if rate < 75 {
return allAlipayClients[AppIdMiYuanTianShi]
}
//rate := rand.Intn(100)
//if rate < 75 {
// return allAlipayClients[AppIdMiYuanTianShi]
//}
return allAlipayClients[AppIdLanXing01]
}