puzhibing
2026-04-18 5a716cad8e5a7387d3fe79d2abc8982ed6593a40
xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/controller/XpOrderController.java
@@ -651,14 +651,14 @@
        String uid = request.getHeader("XP-Uid");
        XpOrder xpOrder = xpOrderService.getById(orderId);
        if (!Objects.equals(xpOrder.getAppUserId(), Long.valueOf(uid))) {
            throw new ServiceException("解锁失败");
            return R.ok();
        }
        if(!Arrays.asList(4, 5, 6, 7, 8).contains(xpOrder.getStatus())){
            throw new ServiceException("解锁失败");
            return R.ok();
        }
        String token = redisService.getCacheObject("rt:bluetooth:unlock:order:" + orderId);
        if (StringUtils.isBlank(token)) {
            throw new ServiceException("解锁失败");
            return R.ok();
        }
        return R.ok(token);
    }