From c566f940e06773a963a7c8c77899590a51d4b120 Mon Sep 17 00:00:00 2001 From: jerry Date: Sat, 2 Jan 2021 18:10:20 +0800 Subject: [PATCH] add custom app version --- src/ZM/Framework.php | 1 + src/ZM/global_defines.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ZM/Framework.php b/src/ZM/Framework.php index 55d373c4..e5e35d55 100644 --- a/src/ZM/Framework.php +++ b/src/ZM/Framework.php @@ -94,6 +94,7 @@ class Framework "version" => ZM_VERSION, "config" => $args["env"] === null ? 'global.php' : $args["env"] ]; + if(APP_VERSION !== "unknown") $out["app_version"] = APP_VERSION; if (isset(ZMConfig::get("global", "swoole")["task_worker_num"])) { $out["task_worker_num"] = ZMConfig::get("global", "swoole")["task_worker_num"]; } diff --git a/src/ZM/global_defines.php b/src/ZM/global_defines.php index c88a819e..ec803e2d 100644 --- a/src/ZM/global_defines.php +++ b/src/ZM/global_defines.php @@ -1,10 +1,12 @@