From 3b7e6500b44c19f9dd50ccb0d1f988c5e186426d Mon Sep 17 00:00:00 2001 From: dongpd Date: Fri, 22 May 2020 15:17:32 +0700 Subject: [PATCH] config server ip --- controllers/ConfigController.php | 4 ++-- nbproject/private/private.properties | 6 +++--- views/config/index.tpl | 13 ++++--------- web/js/config.js | 3 +-- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/controllers/ConfigController.php b/controllers/ConfigController.php index d72b1cb5..cdafc45b 100644 --- a/controllers/ConfigController.php +++ b/controllers/ConfigController.php @@ -166,8 +166,8 @@ class ConfigController extends Controller { 'header' => "Content-Type: application/json", 'method' => "POST", 'content' => json_encode([ - "servermqtt" => $post['servermqtt'], - "url" => $post['url'] + "servermqtt" => $post['server'] . ":1883", + "url" => "http://" . $post['server'] . ":5001/api/box/getConfig" ]), ] ]; diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties index 2455f53c..d6d16d66 100644 --- a/nbproject/private/private.properties +++ b/nbproject/private/private.properties @@ -1,8 +1,8 @@ copy.src.files=false copy.src.on.open=false copy.src.target= -remote.connection=BI-9f36c2 -remote.directory=/anpr +remote.connection=bf_local-799e1d +remote.directory=/BiFace_Server_Lite remote.upload=ON_SAVE -run.as=LOCAL +run.as=REMOTE url=http://localhost/ diff --git a/views/config/index.tpl b/views/config/index.tpl index c1e51f72..ff921398 100644 --- a/views/config/index.tpl +++ b/views/config/index.tpl @@ -42,15 +42,10 @@
-
server_mqtt
- -
-
-
-
-
url
- -
+
server IP
+ {$temp=explode(":",$apiConfig.servermqtt)} + +