From 0bb73c71f2c91c1d023c4910572517bd221cd369 Mon Sep 17 00:00:00 2001 From: zhaobangyu <763098346@QQ.com> Date: Thu, 28 Sep 2023 13:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/accord.lua | 2 ++ server/robot/accord_mgr.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/server/accord.lua b/server/accord.lua index e45b05f2..81da5ebc 100644 --- a/server/accord.lua +++ b/server/accord.lua @@ -1,6 +1,8 @@ #!./quanta import("kernel.lua") +require("socket.core") +require("LuaPanda").start("127.0.0.1", 8820) quanta.startup(function() import("kernel/protobuf_mgr.lua") import("robot/node_factory.lua") diff --git a/server/robot/accord_mgr.lua b/server/robot/accord_mgr.lua index 0ae53739..6f0260ed 100644 --- a/server/robot/accord_mgr.lua +++ b/server/robot/accord_mgr.lua @@ -28,6 +28,7 @@ prop:reader("accord_list", {}) -- 协议列表(添加的数据) prop:reader("case_group", {}) -- 用例分组 prop:reader("load_db_status", false) prop:reader("src_map", {}) -- 资源映射 +prop:reader("srvlist_api", environ.get("QUANTA_SRVLIST_API")) -- 服务器列表api function AccordMgr:__init() -- 创建HTTP服务器