admin
2020-03-01 ec8a1c6f81b5747e9efce86faaba33d10df7f61d
动态提示语调整
4个文件已修改
33 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/DynamicControllerV2.java 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/image/share/down_tip_jd_pdd.png 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/image/share/down_tip_tb.png 补丁 | 查看 | 原始文档 | blame | 历史
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));
    }
}
}
fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
@@ -471,7 +471,7 @@
     * @param out
     */
    private void getDetialPDD(WXMPAcceptData acceptData, Long id, Long uid, String from, PrintWriter out) {
        PDDGoodsDetail pddGoods = PinDuoDuoApiUtil.getGoodsDetail(id);
        PDDGoodsDetail pddGoods =null; //PinDuoDuoApiUtil.getGoodsDetail(id);
        if (pddGoods == null) {
            out.print(JsonUtil.loadFalseResult(2, "商品不存在"));
            return;
fanli/src/main/resource/image/share/down_tip_jd_pdd.png

fanli/src/main/resource/image/share/down_tip_tb.png