Quellcode durchsuchen

fix 去掉ip限制

zoujiajian vor 2 Jahren
Ursprung
Commit
90e170ff2a

+ 4 - 2
netflix-web/src/main/java/com/cyksj/web/controller/goods/GoodsDonController.java

@@ -224,7 +224,8 @@ public class GoodsDonController {
 		    Result<List<YhShopGoodsFrontView>> shopGoods = getShopGoods(yhShopFrontService.getYhsIdByCustomId(customId));
 		    return shopGoods;
 	    }
-	    List<Long> filter_goodsIds = getFilterGoodsIds();
+	    //List<Long> filter_goodsIds = getFilterGoodsIds();
+	    List<Long> filter_goodsIds = null;
 	    String pcCacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "PC";
 	    if (CollUtil.isNotEmpty(filter_goodsIds)) {
 		    pcCacheKey += ":hz-ip";
@@ -268,7 +269,8 @@ public class GoodsDonController {
 		    Result<List<YhShopGoodsFrontView>> shopGoods = getShopGoods(yhShopFrontService.getYhsIdByCustomId(customId));
 		    return shopGoods;
 	    }
-	    List<Long> filter_goodsIds = getFilterGoodsIds();
+	    //List<Long> filter_goodsIds = getFilterGoodsIds();
+		List<Long> filter_goodsIds = null;
 	    String h5CacheKey = RedisService.key.YH_HOME_PAGHE_CACHE.getEnvName() + "H5";
 	    if (CollUtil.isNotEmpty(filter_goodsIds)) {
 		    h5CacheKey += ":hz-ip";

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/group/GroupRelationController.java

@@ -214,7 +214,7 @@ public class GroupRelationController {
         viewRecord.setUserId(userId);
         viewRecord.setRelationId(relationId);
         viewRecord.setSkuId(groupsRelationView.getSkuId());
-        viewRecord.setOperateLocation(StringUtil.getRealAddressByIP(ServletUtil.getClientIP(request)));
+        viewRecord.setOperateLocation(ServletUtil.getClientIP(request));
         viewRecord.setAccount(groupsRelationView.getTripsAccount());
         viewRecord.setPassword(groupsRelationView.getTripsPassword());
         ticketPwdViewRecordMapper.insert(viewRecord);

+ 3 - 3
netflix-web/src/main/java/com/cyksj/web/controller/payment/OrderController.java

@@ -136,9 +136,9 @@ public class OrderController {
         log.info("{}[start] params:{}", methodName, payRequest);
 
         String ip = ServletUtil.getClientIP(request);
-        if (StringUtil.getInternalAddressByIP(ip).contains("柬埔寨")) {
-            throw BusinessRuntimeException.getInstance("系统异常");
-        }
+//        if (StringUtil.getInternalAddressByIP(ip).contains("柬埔寨")) {
+//            throw BusinessRuntimeException.getInstance("系统异常");
+//        }
         payRequest.setIp(ip);
 
         OrderDon orderDon = orderDonService.submit(payRequest);