|
|
|
@ -141,7 +141,7 @@ class HtmlTool {
|
|
|
|
|
public static function getStaticCommonFile($files, $forceTimestamp = '') {
|
|
|
|
|
$static = array();
|
|
|
|
|
$staticDir = str_replace('\\', '/', Zc::C(ZcConfigConst::DirWsApp));
|
|
|
|
|
$apiPath = stripos(Zc::C('static.domain'), '.api.') != false ? '/' : '/api/';
|
|
|
|
|
$apiPath = stripos(Zc::C('static.domain'), 'api.') === 0 ? '/' : '/api/';
|
|
|
|
|
$staticUrlPart = AppConst::getCurProtocol() . '://' . Zc::C('static.domain') . $apiPath . $staticDir . 'views/static_common/';
|
|
|
|
|
$files = is_array($files) ? $files : [$files];
|
|
|
|
|
foreach ($files as $file) {
|
|
|
|
|