Commit ccd5ae20 authored by yujiwei's avatar yujiwei

update:add domain

parent c6be8b86
......@@ -65,7 +65,8 @@ class MonUtil{
$request_module = str_replace(array(".", ":", "/"),array("_", "_", "-"), $host);
if (empty($module)) {
//默认取url 中的域名作为module
$module = $request_module ?? 'other_depent';
$domain = $_SERVER['SERVER_NAME'] ?? 'unknow_domain';
$module = $domain.($request_module ?? 'other_depent');
}
//接口返回状态码打点
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment