From 184a0722e53f64f40ddb2c88f11f26941f565a8c Mon Sep 17 00:00:00 2001 From: ZY <zc857179121@qq.com> Date: 星期三, 18 十二月 2024 14:56:44 +0800 Subject: [PATCH] 上报逻辑调整 --- src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java index 230cf7c..af24386 100644 --- a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java +++ b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java @@ -29,6 +29,9 @@ @Slf4j public class AgvWrkMastServiceImp extends ServiceImpl<AgvWrkMastMapper, AgvWrkMast> implements AgvWrkMastService { + @Value("${agv.flag}") + private boolean flag; + @Value("${agv.url}") private String url; @@ -271,6 +274,9 @@ } private int doHttpRequest(Object requestParam, String namespace, String url, String path, String appkey, String ip) { + if (!flag) { + return 1; + } String response = ""; boolean success = false; int code = 0; -- Gitblit v1.9.1