mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-09 04:20:08 +08:00
update 小程序绑定个人桩加锁
This commit is contained in:
@@ -92,9 +92,13 @@ public class PersonPileController extends BaseController {
|
|||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
logger.error("绑定个人桩信息 error,", exception);
|
logger.error("绑定个人桩信息 error,", exception);
|
||||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_BINDING_PERSONAL_PILE_ERROR);
|
response = new RestApiResponse<>(ReturnCodeEnum.CODE_BINDING_PERSONAL_PILE_ERROR);
|
||||||
|
}finally {
|
||||||
|
String cacheUid = redisCache.getCacheObject(lockKey);
|
||||||
|
if (StringUtils.equals(cacheUid, uuid)) {
|
||||||
|
// 解锁
|
||||||
|
redisCache.unLock(lockKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 解锁
|
|
||||||
redisCache.unLock(lockKey);
|
|
||||||
logger.info("绑定个人桩信息 result:{}", response);
|
logger.info("绑定个人桩信息 result:{}", response);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user