Merge branch 'dev_fi_xxx' into test

This commit is contained in:
lwl0608 2024-11-11 21:23:40 +08:00
commit 30db4e8570
2 changed files with 4 additions and 5 deletions

View File

@ -3059,7 +3059,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*48 {
if time.Now().Unix()-zu.GetAdmissionCt() < 3600*2 {
refundEnable = 1
}
if zu.GetAdmissionUnlockType() == dbstruct.ZoneUnlockTypeRefund {

View File

@ -10,7 +10,6 @@ import (
"service/bizcommon/util"
"service/dbstruct"
"service/library/logger"
"service/library/payclients/alipaycli"
"service/library/redis"
"time"
@ -1090,9 +1089,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小时后重试")
}
//if order.GetOid3() == alipaycli.AppIdMiYuanTianShi {
// return fmt.Errorf("订单正在处理请24小时后重试")
//}
// 退款
err = v.RefundOrder(ctx, &vasproto.RefundOrderReq{