记得上下班打卡 | git大法好,push需谨慎

Commit cc18c8f8 authored by jiangxiulong's avatar jiangxiulong

打开权限限购

parent 939f1c68
...@@ -113,12 +113,12 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService { ...@@ -113,12 +113,12 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
} }
} }
// 权限限购 // 权限限购
/*String mobile = StringUtils.defaultString(((String) CurrentUtil.getTokenClaims().get(CurrentUtil.TOKEN_MOBILE)), ""); String mobile = StringUtils.defaultString(((String) CurrentUtil.getTokenClaims().get(CurrentUtil.TOKEN_MOBILE)), "");
boolean isVip = nftOrderUtils.isVipMember(uid); boolean isVip = nftOrderUtils.isVipMember(uid);
Boolean isAuthBuy = goblinOrderUtils.judgeOrderRose(isVip, skuId, mobile, Integer.parseInt(skuVo.getBuyFactor())); Boolean isAuthBuy = goblinOrderUtils.judgeOrderRose(isVip, skuId, mobile, Integer.parseInt(skuVo.getBuyFactor()));
if (!isAuthBuy) { if (!isAuthBuy) {
return ResponseDto.failure("该商品仅限特定用户购买~"); return ResponseDto.failure("该商品仅限特定用户购买~");
}*/ }
// 判断优惠券不能一起使用 // 判断优惠券不能一起使用
/*String platVoucherCode = payParam.getPlatVoucherCode(); /*String platVoucherCode = payParam.getPlatVoucherCode();
String storeVoucherCode = payParam.getStoreVoucherCode(); String storeVoucherCode = payParam.getStoreVoucherCode();
......
...@@ -328,4 +328,11 @@ public class GoblinNftOrderUtils { ...@@ -328,4 +328,11 @@ public class GoblinNftOrderUtils {
return returnString; return returnString;
} }
public boolean isVipMember(String uid) {
if (goblinRedisUtils.getMember(uid) != null) {
return true;
} else {
return false;
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment