fix:redis 执行异常

This commit is contained in:
suzhuhong
2026-04-22 15:49:25 +08:00
parent 78ef7e9440
commit 66ab8dc975

View File

@@ -257,11 +257,15 @@ public class WalletHttpClientRest {
});
//门店映射
if (map.containsKey(STORE_ID)){
String key = RedisConstant.STORE_ID_MAPPING;
String key = RedisConstant.STORE_ID_MAPPING;
String storeId = (String) map.get(STORE_ID);
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
if (StringUtil.isNotEmpty(storeIdMapping)){
map.put(STORE_ID,storeIdMapping);
try {
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
if (StringUtil.isNotEmpty(storeIdMapping)){
map.put(STORE_ID, storeIdMapping);
}
} catch (Exception e) {
log.error("Redis执行异常key: {}, storeId: {}", key, storeId, e);
}
}
return map;