|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|