From 3727469752a977dde6327e2c48d761b20b565d3d Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 15 七月 2022 09:19:21 +0800 Subject: [PATCH] 商品ID字符串化 --- fanli/src/main/java/com/yeshi/fanli/service/manger/goods/TaoBaoLinkManager.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/manger/goods/TaoBaoLinkManager.java b/fanli/src/main/java/com/yeshi/fanli/service/manger/goods/TaoBaoLinkManager.java index 5a66129..cdda9c5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/manger/goods/TaoBaoLinkManager.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/manger/goods/TaoBaoLinkManager.java @@ -73,8 +73,8 @@ * @param pid * @return */ - public TaoBaoLink getTaoBaoLinkForRecieveCoupon(SystemEnum system, Long auctionId, String specialId, String pid) throws TaoBaoConvertLinkException { - if (auctionId == null || auctionId <= 0) { + public TaoBaoLink getTaoBaoLinkForRecieveCoupon(SystemEnum system, String auctionId, String specialId, String pid) throws TaoBaoConvertLinkException { + if (StringUtil.isNullOrEmpty(auctionId)) { throw new TaoBaoConvertLinkException(2, "鍟嗗搧ID涓嶈兘涓虹┖"); } @@ -142,7 +142,7 @@ * @param pid * @return */ - public TaoBaoLink getTaoBaoLinkForBuy(SystemEnum system, Long uid, Long auctionId, String specialId, String pid) throws TaoBaoConvertLinkException { + public TaoBaoLink getTaoBaoLinkForBuy(SystemEnum system, Long uid, String auctionId, String specialId, String pid) throws TaoBaoConvertLinkException { if (uid == null || uid <= 0) { throw new TaoBaoConvertLinkException(1, "鐢ㄦ埛ID涓嶈兘涓虹┖"); } @@ -184,7 +184,7 @@ } - private void cacheCouponInfo(Long auctionId, String link, String pid) { + private void cacheCouponInfo(String auctionId, String link, String pid) { String activityId = TaoBaoUtil.getActivityIdFromCouponLink(link); if (StringUtil.isNullOrEmpty(activityId)) return; @@ -238,13 +238,13 @@ * @param pid * @return */ - public TaoBaoLink getTaoBaoLinkForShare(SystemEnum system, Long uid, Long auctionId, String relationId, String pid) throws + public TaoBaoLink getTaoBaoLinkForShare(SystemEnum system, Long uid, String auctionId, String relationId, String pid) throws TaoBaoConvertLinkException { if (uid == null || uid <= 0) { throw new TaoBaoConvertLinkException(1, "鐢ㄦ埛ID涓嶈兘涓虹┖"); } - if (auctionId == null || auctionId <= 0) { + if (StringUtil.isNullOrEmpty(auctionId)) { throw new TaoBaoConvertLinkException(2, "鍟嗗搧ID涓嶈兘涓虹┖"); } @@ -374,11 +374,11 @@ * @param pid * @return */ - public TaoBaoLink getTaoLiJinLinkForBuy(Long uid, Long auctionId, String pid) throws TaoBaoConvertLinkException { + public TaoBaoLink getTaoLiJinLinkForBuy(Long uid, String auctionId, String pid) throws TaoBaoConvertLinkException { if (uid == null || uid <= 0) throw new TaoBaoConvertLinkException(1, "鐢ㄦ埛ID涓嶈兘涓虹┖"); - if (auctionId == null || auctionId <= 0) + if (StringUtil.isNullOrEmpty(auctionId)) throw new TaoBaoConvertLinkException(1, "鍟嗗搧ID涓嶈兘涓虹┖"); TaoBaoGoodsBrief goods = null; @@ -416,13 +416,13 @@ * @param pid * @return */ - public TaoBaoLink getTaoLiJinLinkForShare(SystemEnum system, Long uid, Long auctionId, String relationId, String pid) throws + public TaoBaoLink getTaoLiJinLinkForShare(SystemEnum system, Long uid, String auctionId, String relationId, String pid) throws TaoBaoConvertLinkException { if (uid == null || uid <= 0) { throw new TaoBaoConvertLinkException(1, "鐢ㄦ埛ID涓嶈兘涓虹┖"); } - if (auctionId == null || auctionId <= 0) { + if (StringUtil.isNullOrEmpty(auctionId)) { throw new TaoBaoConvertLinkException(2, "鍟嗗搧ID涓嶈兘涓虹┖"); } -- Gitblit v1.8.0