修改bug

20240120-ljl-routeConfig
ljl 11 months ago
parent 4e4a49a6d0
commit 73473847f7

@ -8,9 +8,7 @@ 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