fix:redis 执行异常
This commit is contained in:
@@ -259,9 +259,13 @@ public class WalletHttpClientRest {
|
|||||||
if (map.containsKey(STORE_ID)){
|
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 storeId = (String) map.get(STORE_ID);
|
||||||
|
try {
|
||||||
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
|
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
|
||||||
if (StringUtil.isNotEmpty(storeIdMapping)){
|
if (StringUtil.isNotEmpty(storeIdMapping)){
|
||||||
map.put(STORE_ID,storeIdMapping);
|
map.put(STORE_ID, storeIdMapping);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Redis执行异常,key: {}, storeId: {}", key, storeId, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
|||||||
Reference in New Issue
Block a user