修改bug

20240120-ljl-routeConfig
ljl 11 months ago
parent 8b9a19eee2
commit 02f30a4fbd

@ -8,7 +8,9 @@ class HtmlTool {
$staticDir = str_replace('\\', '/', Zc::C(ZcConfigConst::DirWsViewsStatic));
$staticHost = self::getStaticHost();
$staticDomain = $protocol . '://' . $staticHost;
var_dump('staticHost:' . $staticHost);
$apiPath = (stripos($staticHost, 'api.') === 0 || stripos(Zc::C('static.domain'), '.api.') != false) ? '/' : '/api/';
var_dump('apiPath' . $apiPath);
return $staticDomain . $apiPath . $staticDir;
}

Loading…
Cancel
Save