This commit is contained in:
尖叫 2023-11-29 14:38:15 +08:00
parent b769d2eceb
commit 8eb639424a

View File

@ -102,10 +102,11 @@ $this->params['breadcrumbs'][] = $this->title;
$json_de = json_decode($model->cover_pic, true);
$temp_arr = [];
foreach ($json_de as $key => $val) {
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
$val_model = filesize('D:/phpstudy_pro/WWW/cxgj/web' . $val);
} else {
$val_model = filesize(\app\components\SiteHelper::getFullUrl($val));
$val_model = filesize($_SERVER["DOCUMENT_ROOT"] . $val);
}
$explode = explode('/', $val);
$end = end($explode);