yujian
2019-02-25 607193d080c531c7a0535f4006ac6d6b0ee27a17
fanli/src/main/java/com/yeshi/fanli/controller/client/GoodsController.java
@@ -75,6 +75,8 @@
      boolean isNative = false;
      String pid = null;
      boolean specialConvert = false;
      String specialId = null;
      // 查询用户ID是否绑定了会员运营ID
      UserExtraTaoBaoInfo userInfo = userExtraTaoBaoInfoService.getByUid(uid);
@@ -86,6 +88,7 @@
            TaoBaoGoodsBrief goods = TaoKeApiUtil.getSimpleGoodsInfo(auctionId);
            if (goods.getMaterialLibType() != null && goods.getMaterialLibType() == 1) {
               isNative = true;
               specialConvert = true;
            } else
               isNative = false;
         } catch (TaobaoGoodsDownException e) {
@@ -106,10 +109,18 @@
            pidType = PidUser.TYPE_FANLI_IOS;
         TaoBaoLink taoBaoLink = null;
         if (!StringUtil.isNullOrEmpty(specialId)) {
         if (!StringUtil.isNullOrEmpty(specialId) && specialConvert) {
            taoBaoLink = shareGoodsService.getTaoBaoLinkForBuyWithSpecial(uid, specialId, auctionId);
         } else {
            taoBaoLink = shareGoodsService.getTaoBaoLinkForBuy(uid, auctionId, pidType);
            if (!specialConvert && !isNative) {
               if (pidType == PidUser.TYPE_FANLI_ANDROID)
                  taoBaoLink = shareGoodsService.getTaoBaoLink(uid, auctionId,
                        tbPidService.getAndroidDefault().getPid());
               else
                  taoBaoLink = shareGoodsService.getTaoBaoLink(uid, auctionId,
                        tbPidService.getIOSDefault().getPid());
            } else
               taoBaoLink = shareGoodsService.getTaoBaoLinkForBuy(uid, auctionId, pidType);
         }
         JSONObject link = new JSONObject();