浏览代码

升级接口报错,解锁

dengsixing 2 年之前
父节点
当前提交
a95202524f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/com/fdkankan/ucenter/service/impl/SceneUpgradeToV4Service.java

+ 1 - 0
src/main/java/com/fdkankan/ucenter/service/impl/SceneUpgradeToV4Service.java

@@ -106,6 +106,7 @@ public class SceneUpgradeToV4Service implements ISceneUpgradeToV4Service {
 
         }catch (Exception e){
             log.error("场景升级失败", e);
+            redisLockUtil.unlockLua(lockKey);
             this.upgradeLog(sceneRepairLog, num, 2, ExceptionUtil.stacktraceToString(e, 3000));
             return Result.failure(ErrorCode.FAILURE_CODE_7021.code(), ErrorCode.FAILURE_CODE_7021.message());
         }