From 7384fd794b9bcb38cef7853cb55e56e810775678 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 09 八月 2019 14:27:02 +0800
Subject: [PATCH] 动态/品牌商品添加到重要商品更新库,推荐记录列表返回结果跳转任意更改

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
index a782295..952a0f4 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
@@ -123,10 +123,7 @@
 		// 鍘婚櫎鍓嶅悗绌烘牸
 		text = text.trim();
 
-		if (text.length() > 256) {
-			out.print(JsonUtil.loadFalseResult("鍊艰繃闀�"));
-			return;
-		}
+	
 
 		TaoBaoGoodsBrief tb = null;
 		String URL_REGEX = "(((http|https)://)|(www\\.))[a-zA-Z0-9\\._-]+\\.[a-zA-Z]{2,6}(:[0-9]{1,4})?(/[a-zA-Z0-9\\&%_\\./-~-]*)?";
@@ -134,6 +131,10 @@
 		Pattern p = Pattern.compile(URL_REGEX);
 		Matcher matcher = p.matcher(text);
 		if (!matcher.find()) {// 涓嶅寘鍚摼鎺�
+			if (text.length() > 256) {
+				out.print(JsonUtil.loadFalseResult("鍊艰繃闀�"));
+				return;
+			}
 			String pattern = "^[A-Za-z0-9-]+$";
 			if (Pattern.matches(pattern, text.replace(" ", ""))) {//鍒犻櫎绌烘牸
 				out.println(JsonUtil.loadFalseResult("涓嶆敮鎸佹帹鑽�"));

--
Gitblit v1.8.0