| | |
| | | * 删除某个键值 |
| | | * |
| | | * @param key |
| | | * @param value |
| | | */ |
| | | public void removeKey(String key) { |
| | | Jedis jedis = getJedis(); |
| | |
| | | } |
| | | } |
| | | |
| | | public TaoBaoGoodsBrief getTaoBaoGoodsTemp(Long auctionId) { |
| | | public TaoBaoGoodsBrief getTaoBaoGoodsTemp(String auctionId) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoGoodsTemp, auctionId + ""); |
| | | String value = getCommonString(key); |
| | | if (!StringUtil.isNullOrEmpty(value)) { |
| | |
| | | * |
| | | * @param auctionId |
| | | */ |
| | | public void deleteTaoBaoGoodsBrief(Long auctionId) { |
| | | public void deleteTaoBaoGoodsBrief(String auctionId) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoGoods, auctionId + ""); |
| | | if (Constant.IS_OUTNET) |
| | | removeKey(key); |
| | | } |
| | | |
| | | public TaoBaoGoodsBrief getTaoBaoGoodsBrief(long auctionId) throws TaobaoGoodsDownException { |
| | | public TaoBaoGoodsBrief getTaoBaoGoodsBrief(String auctionId) throws TaobaoGoodsDownException { |
| | | long startTime = System.currentTimeMillis(); |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoGoods, auctionId + ""); |
| | | String value = ""; |
| | |
| | | } |
| | | } |
| | | |
| | | public List<ImageInfo> getTaoBaoGoodsDetailImgs(long auctionId, SystemEnum system) { |
| | | public List<ImageInfo> getTaoBaoGoodsDetailImgs(String auctionId, SystemEnum system) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoGoodsDetailimgs, auctionId + ""); |
| | | String value = ""; |
| | | if (Constant.IS_OUTNET) |
| | |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | public List<String> getTBImg(Long auctionId) { |
| | | public List<String> getTBImg(String auctionId) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoImgs, auctionId + ""); |
| | | String value = ""; |
| | | if (Constant.IS_OUTNET) |
| | |
| | | * @param sellerId |
| | | * @return |
| | | */ |
| | | public TaoBaoShopInfo getTBShopInfo(String shopTitle, Long sellerId, Long auctionId) { |
| | | public TaoBaoShopInfo getTBShopInfo(String shopTitle, Long sellerId, String auctionId) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoShop, sellerId + ""); |
| | | String value = ""; |
| | | if (Constant.IS_OUTNET) |
| | |
| | | * |
| | | * @param phone |
| | | * @param type |
| | | * @param code |
| | | */ |
| | | public void clearSMSVCode(String phone, int type) { |
| | | // if (!Constant.IS_OUTNET) |
| | |
| | | * @param auctionId |
| | | * @param token |
| | | */ |
| | | public void saveCommonTaoToken(Long auctionId, String token) { |
| | | public void saveCommonTaoToken(String auctionId, String token) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoTokenCommon, auctionId + ""); |
| | | if (Constant.IS_OUTNET) { |
| | | if (!StringUtil.isNullOrEmpty(token)) { |
| | |
| | | /** |
| | | * 获取用户短连接 |
| | | * |
| | | * @param uid |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | public String getCommonTaoToken(Long auctionId) { |
| | | public String getCommonTaoToken(String auctionId) { |
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoTokenCommon, auctionId + ""); |
| | | if (Constant.IS_OUTNET) { |
| | | return getCommonString(key); |
| | |
| | | /** |
| | | * 保存对象 |
| | | * |
| | | * @param T |
| | | * @param clazz |
| | | * @param key |
| | | * @param seconds |
| | | */ |