联动NAS优先使用IP
This commit is contained in:
parent
98da63a0d5
commit
bbc36ff42a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user