根因: handleAddDeviceBilling方法中对locationId的验证过于严格, 当前端未传递locationId时直接抛出ServiceException导致签发失败。 修复: 将严格验证改为预处理设置默认值, 当advice.getLocationId()为null时, 使用SecurityUtils.getLoginUser().getOrgId()作为默认位置ID。
根因: handleAddDeviceBilling方法中对locationId的验证过于严格, 当前端未传递locationId时直接抛出ServiceException导致签发失败。 修复: 将严格验证改为预处理设置默认值, 当advice.getLocationId()为null时, 使用SecurityUtils.getLoginUser().getOrgId()作为默认位置ID。