| | |
| | |
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.util.RedisKeyEnum;
|
| | | import com.yeshi.fanli.util.RedisManager;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.jd.JDUtil;
|
| | |
| | | * @return
|
| | | */
|
| | | public String parseGoodsIdByJDShortUrl(String shortLink) {
|
| | | String key = "jd-link-to-goods-" + StringUtil.Md5(shortLink);
|
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.JDShortUrl, StringUtil.Md5(shortLink));
|
| | | String value = redisManager.getCommonString(key);
|
| | | if (!StringUtil.isNullOrEmpty(value)) {
|
| | | return value;
|