opt:1.修改远程下发任务限制.2.巡航模式下限制接收配送任务。3.优化国际化。4.站点按照名称排序。
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user