联动NAS优先使用IP

This commit is contained in:
Yutousama 2021-10-23 13:25:46 +08:00
parent 98da63a0d5
commit bbc36ff42a

View File

@ -168,7 +168,11 @@ public class NasManager {
if("dev".equals(ConfigTools.load(ConfigTools.CONFIG, "model"))){
json.put("data", NasUrl+":8001");
}else {
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();