From ec8a1c6f81b5747e9efce86faaba33d10df7f61d Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期日, 01 三月 2020 16:37:26 +0800
Subject: [PATCH] 动态提示语调整

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java |   31 +++++++++++++++----------------
 1 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java
index 1a97a52..75e5d1b 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java
@@ -122,7 +122,7 @@
 
 	@Resource
 	private QrCodeService qrCodeService;
-	
+
 	@Resource
 	private ConvertLinkManager convertLinkManager;
 
@@ -590,7 +590,7 @@
 	@RequestMapping(value = "getDynamicList", method = RequestMethod.POST)
 	public void getDynamicListNew(AcceptData acceptData, Integer page, Long cid, String subId, PrintWriter out) {
 		int type = 1;
-		if (cid == TYPE_FAQUAN){
+		if (cid == TYPE_FAQUAN) {
 			type = 1;
 		} else if (cid == TYPE_SUCAI) {
 			type = 2;
@@ -774,7 +774,7 @@
 						continue;
 					}
 
-					String jumpLink = getJumpLink(goodsVO, user,relationId, inviteCode);
+					String jumpLink = getJumpLink(goodsVO, user, relationId, inviteCode);
 					if (!StringUtil.isNullOrEmpty(jumpLink)) {
 						list.add(jumpLink);
 					}
@@ -786,7 +786,7 @@
 						if (imgInfo.getGoodsVO() != null)
 							if (imgInfo.getGoodsVO().getGoodsId().longValue() == goodsId.longValue()
 									&& imgInfo.getGoodsVO().getGoodsType() == goodsType.intValue()) {
-								String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user,relationId, inviteCode);
+								String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode);
 								if (!StringUtil.isNullOrEmpty(jumpLink)) {
 									list.add(jumpLink);
 								}
@@ -796,7 +796,7 @@
 				} else if (type == 2 || type == 3) {
 					for (ImgInfo imgInfo : imgs) {
 						if (imgInfo.getGoodsVO() != null) {
-							String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user,relationId, inviteCode);
+							String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode);
 							if (!StringUtil.isNullOrEmpty(jumpLink)) {
 								list.add(jumpLink);
 							}
@@ -817,7 +817,6 @@
 				}
 			}
 		}
-	
 
 		Integer shareCount = goodsEvaluate.getShareNum();
 		if (shareCount == null) {
@@ -839,21 +838,22 @@
 		data.put("list", list);
 		out.print(JsonUtil.loadTrueResult(data));
 	}
-	
+
 	@Resource
 	private ShareGoodsService shareGoodsService;
 
-	private String getJumpLink(GoodsDetailVO goodsVO, UserInfo user,String relationId, String inviteCode) {
+	private String getJumpLink(GoodsDetailVO goodsVO, UserInfo user, String relationId, String inviteCode) {
 		String jumpLink = null;
 		if (goodsVO.getGoodsType() == Constant.SOURCE_TYPE_TAOBAO) {
-			TaoBaoLink taoBaoLink=null;
+			TaoBaoLink taoBaoLink = null;
 			try {
 				taoBaoLink = shareGoodsService.getTaoBaoLinkForShare(user.getId(), goodsVO.getGoodsId(), relationId);
 			} catch (ShareGoodsException e) {
 				e.printStackTrace();
 			}
-			
-			jumpLink =configService.get(ConfigKeyEnum.taobaoShareQrcodeText.getKey()).replace("[娣樺彛浠", taoBaoLink.getTaoToken());
+
+			jumpLink = configService.get(ConfigKeyEnum.taobaoShareQrcodeText.getKey()).replace("[娣樺彛浠",
+					taoBaoLink.getTaoToken());
 		} else if (goodsVO.getGoodsType() == Constant.SOURCE_TYPE_JD) {
 			JDGoods jdGoods = jdGoodsCacheUtil.getGoodsInfo(goodsVO.getGoodsId());
 			if (jdGoods == null) {
@@ -934,12 +934,12 @@
 				}
 			}
 		}
-		
+
 		try {
-			text=convertLinkManager.convertLinkFromText(text, uid, true);
+			text = convertLinkManager.convertLinkFromText(text, uid, true);
 		} catch (Exception e) {
 			e.printStackTrace();
-			out.print(JsonUtil.loadFalseResult("杞摼澶辫触"));
+			out.print(JsonUtil.loadFalseResult("璇勮鐢熸垚澶辫触"));
 			return;
 		}
 
@@ -947,6 +947,5 @@
 		data.put("text", text);
 		out.print(JsonUtil.loadTrueResult(data));
 	}
-	
-}
 
+}

--
Gitblit v1.8.0