yujian
2020-01-03 598d537f468c7c20a840c6ff8c9f742b6f542286
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ShareController.java
@@ -1096,14 +1096,11 @@
               TaoBaoGoodsBrief goods = taoBaoLink.getGoods();
               if (!com.yeshi.fanli.util.VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(),
                     acceptData.getVersion()))
                  data.put("clickUrl", ShareControllerV2.getERCodeContent(goods, taoBaoLink.getTaoToken()));
                  data.put("clickUrl", ShareControllerV2.getERCodeContent(configService.get("taobao_share_qrcode_text"), goods, taoBaoLink.getTaoToken()));
               data.put("token", TaoBaoUtil.filterTaoToken(taoBaoLink.getTaoToken()));
               String inviteCode = null;
               UserInfoExtra extra = userInfoExtraService.getUserInfoExtra(uid);
               if (extra != null)
                  inviteCode = extra.getInviteCode();
               String inviteCode  = userInfoExtraService.getInviteCodeByUid(uid);
               // 测试
               List<String> commentTexts = new ArrayList<>();
               String commentTextStr = configService.get("share_single_goods_comment_text");
@@ -1124,16 +1121,13 @@
                  }
               }
               data.put("commentTexts", commentTexts);
               data.put("wxErCode", ShareControllerV2.getERCodeContent(goods, taoBaoLink.getTaoToken()));
               data.put("wxErCode", ShareControllerV2.getERCodeContent(configService.get("taobao_share_qrcode_text"), goods, taoBaoLink.getTaoToken()));
            }
         } else if (cid == 4) { // 邀请分享
            String inviteCode = null;
            UserInfoExtra userInfoExtra = userInfoExtraService.getUserInfoExtra(uid);
            if (userInfoExtra != null && !StringUtil.isNullOrEmpty(userInfoExtra.getInviteCode())) {
               inviteCode = userInfoExtra.getInviteCode();
            } else {
            String inviteCode = userInfoExtraService.getInviteCodeByUid(uid);
            if (StringUtil.isNullOrEmpty(inviteCode)) {
               out.print(JsonUtil.loadFalseResult(9001, "邀请码未激活"));
               return;
            }