From 0b57cfd62e842b309d03467b96a331c673ecad7c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 21 四月 2020 14:08:18 +0800 Subject: [PATCH] 删除普通会员等级 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java | 52 +++++++++++++++++++++++++--------------------------- 1 files changed, 25 insertions(+), 27 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 2763715..93e9c91 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 @@ -35,7 +35,6 @@ import com.yeshi.fanli.entity.bus.user.UserInfo; import com.yeshi.fanli.entity.common.JumpDetailV2; import com.yeshi.fanli.entity.dynamic.CommentInfo; -import com.yeshi.fanli.entity.dynamic.CommentInfo.CommentInfoEnum; import com.yeshi.fanli.entity.dynamic.DynamicInfo; import com.yeshi.fanli.entity.dynamic.GoodsEvaluate; import com.yeshi.fanli.entity.dynamic.GoodsEvaluate.EvaluateEnum; @@ -136,13 +135,12 @@ @Resource private ShareGoodsService shareGoodsService; - - @Resource - private DailyCountMomentsService dailyCountMomentsService; - + + @Resource + private DailyCountMomentsService dailyCountMomentsService; + @Resource(name = "taskExecutor") private TaskExecutor executor; - private final static long TYPE_REXIAO = 1;// 鐑攢 private final static long TYPE_TUIJIAN = 2;// 鎺ㄨ崘 @@ -257,7 +255,7 @@ // 2.0.7杩斿洖鍙戝湀+娲诲姩+瀛﹂櫌+绱犳潗 list.add(map.get(TYPE_FAQUAN)); list.add(map.get(TYPE_HUODONG)); - // list.add(map.get(TYPE_XUEYUAN)); + list.add(map.get(TYPE_XUEYUAN)); // list.add(map.get(TYPE_SUCAI)); } else if (VersionUtil.greaterThan_2_0_6(acceptData.getPlatform(), acceptData.getVersion())) { // 2.0.6杩斿洖鐑攢+娲诲姩+鎺ㄨ崘+瀛﹂櫌+閭�璇� @@ -638,7 +636,7 @@ return new JsonPrimitive(""); } else { // 淇濈暀2浣嶅皬鏁� - return new JsonPrimitive(MoneyBigDecimalUtil.getWithNoZera(value)+""); + return new JsonPrimitive(MoneyBigDecimalUtil.getWithNoZera(value) + ""); } } }).registerTypeAdapter(Date.class, new JsonSerializer<Date>() { @@ -842,7 +840,8 @@ if (imgInfo.getGoodsVO() != null) if (imgInfo.getGoodsVO().getGoodsId().longValue() == goodsId.longValue() && imgInfo.getGoodsVO().getGoodsType() == goodsType.intValue()) { - String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode, imgInfo.getUrl()); + String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode, + imgInfo.getUrl()); if (!StringUtil.isNullOrEmpty(jumpLink)) { list.add(jumpLink); } @@ -852,7 +851,8 @@ } else if (type == 2 || type == 3) { for (ImgInfo imgInfo : imgs) { if (imgInfo.getGoodsVO() != null) { - String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode, imgInfo.getUrl() ); + String jumpLink = getJumpLink(imgInfo.getGoodsVO(), user, relationId, inviteCode, + imgInfo.getUrl()); if (!StringUtil.isNullOrEmpty(jumpLink)) { list.add(jumpLink); } @@ -870,7 +870,7 @@ else if (imgInfo.getType() == ImgEnum.activity) if (!StringUtil.isNullOrEmpty(imgInfo.getActivityPic())) { list.add(imgInfo.getActivityPic()); - }else if(!StringUtil.isNullOrEmpty(imgInfo.getUrl())){ + } else if (!StringUtil.isNullOrEmpty(imgInfo.getUrl())) { list.add(imgInfo.getUrl()); } } @@ -885,11 +885,11 @@ if (type == 3) { shareCount++; goodsEvaluateService.addShareNum(id); - + executor.execute(new Runnable() { @Override public void run() { // 娣诲姞姣忔棩缁熻 - dailyCountMomentsService.addShareClick(); + dailyCountMomentsService.addShareClick(); } }); } @@ -909,7 +909,8 @@ } } - private String getJumpLink(GoodsDetailVO goodsVO, UserInfo user, String relationId, String inviteCode, String mainPic) { + private String getJumpLink(GoodsDetailVO goodsVO, UserInfo user, String relationId, String inviteCode, + String mainPic) { String jumpLink = null; if (goodsVO.getGoodsType() == Constant.SOURCE_TYPE_TAOBAO) { TaoBaoLink taoBaoLink = null; @@ -918,8 +919,8 @@ } catch (ShareGoodsException e) { e.printStackTrace(); } - jumpLink = ShareControllerV2.getERCodeContentNew( - configService.get(ConfigKeyEnum.quickShareTBCommentText.getKey()), taoBaoLink.getGoods(), + jumpLink = ShareControllerV2.getERCodeContentNew( + configService.get(ConfigKeyEnum.taobaoShareQrcodeText.getKey()), taoBaoLink.getGoods(), TaoBaoUtil.filterTaoToken(taoBaoLink.getTaoToken())); } else if (goodsVO.getGoodsType() == Constant.SOURCE_TYPE_JD) { JDGoods jdGoods = jdGoodsCacheUtil.getGoodsInfo(goodsVO.getGoodsId()); @@ -1006,8 +1007,7 @@ } String newText = text; // 闈為�氱敤鍒搁渶瑕侀獙璇� - if ((comment != null && comment.getTypeEnum() != CommentInfoEnum.currencyCoupon) - || goodsEvaluate.getType() == EvaluateEnum.activity) { + if (comment != null && (comment.getNeedSpin() == null || comment.getNeedSpin())) { try { newText = convertLinkManager.convertLinkFromText(text, uid, true); } catch (ConvertLinkExceptionException e) { @@ -1021,30 +1021,28 @@ return; } } - - + // 鏇挎崲浠锋牸 if (goodsEvaluate.getType() == EvaluateEnum.single) { GoodsDetailVO goods = goodsEvaluate.getGoods(); - newText = newText.replace("[鍘熶环]", MoneyBigDecimalUtil.getWithNoZera(goods.getZkPrice()) +""); + newText = newText.replace("[鍘熶环]", MoneyBigDecimalUtil.getWithNoZera(goods.getZkPrice()) + ""); if (!goods.isHasCoupon()) { newText = newText.replace("棰嗗埜鎶㈣喘", "鎶㈣喘"); newText = newText.replace("銆愬埜鍚庝环銆慬鍒稿悗浠穄鍏�", ""); } else { - newText = newText.replace("[鍒稿悗浠穄", MoneyBigDecimalUtil.getWithNoZera(goods.getCouponPrice())+""); + newText = newText.replace("[鍒稿悗浠穄", MoneyBigDecimalUtil.getWithNoZera(goods.getCouponPrice()) + ""); } newText.replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n"); } - - + JSONObject data = new JSONObject(); data.put("text", newText); out.print(JsonUtil.loadTrueResult(data)); - + executor.execute(new Runnable() { - @Override + @Override public void run() { // 娣诲姞姣忔棩缁熻 - dailyCountMomentsService.addCopyComment(); + dailyCountMomentsService.addCopyComment(); } }); } -- Gitblit v1.8.0