From bbc36ff42a8af0232c0e2089710f6ef0b2f8861d Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sat, 23 Oct 2021 13:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E5=8A=A8NAS=E4=BC=98=E5=85=88?= =?UTF-8?q?=E4=BD=BF=E7=94=A8IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/nas/NasManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/tools/nas/NasManager.java b/src/main/java/com/yutou/tools/nas/NasManager.java index 6c78abc..6974aca 100644 --- a/src/main/java/com/yutou/tools/nas/NasManager.java +++ b/src/main/java/com/yutou/tools/nas/NasManager.java @@ -168,7 +168,11 @@ public class NasManager { if("dev".equals(ConfigTools.load(ConfigTools.CONFIG, "model"))){ json.put("data", NasUrl+":8001"); }else { - json.put("data", "http://yutou233.cn:8001"); + if(UpdateIp.nas_ip==null) { + json.put("data", "http://yutou233.cn:8001"); + }else { + json.put("data", String.format("http://%s:8000", UpdateIp.nas_ip)); + } } json.put("code", 0); return json.toJSONString();