From 9113e6d543b6e32711c0cb8f0697c993cd96446d Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 31 七月 2019 14:50:16 +0800 Subject: [PATCH] 京东/拼多多网页商品详情拦截修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java index c20ad55..b5cb373 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java @@ -17,6 +17,7 @@ private HistorySearchMapper historySearchMapper; public void addHistorySearch(String searchKey, String bid) { + searchKey = searchKey != null && searchKey.length() > 64 ? searchKey.substring(0, 64) : searchKey; HistorySearch historySearch = new HistorySearch(); historySearch.setName(searchKey); historySearch.setBusinessId(bid); -- Gitblit v1.8.0