opt:1.修改远程下发任务限制.2.巡航模式下限制接收配送任务。3.优化国际化。4.站点按照名称排序。

This commit is contained in:
2026-03-19 10:03:17 +08:00
parent b693340185
commit bbd09035a8
7 changed files with 49 additions and 9 deletions

View File

@@ -157,11 +157,6 @@ public class QRCodeServiceImpl implements QRCodeService {
if (taskAPI.queryTaskInfoByDestination(qrCodeTaskRequestParam.getDestinations())){
throw new BadRequestException(LangProcess.msg("qrcode_create_failed_exists_task"));
}
String mode = settingAPI.querySettingParamByCode("mode").getJSONObject("data").getString("value");
// 判断是否在巡航模式 再巡航模式不能下发二维码任务
if ("1".equals(mode)){
throw new BadRequestException(LangProcess.msg("qrcode_create_failed_mode"));
}
return taskAPI.createTask(qrCodeTaskRequestParam, TaskSourceEnum.QRCODE.getName());
}