1
This commit is contained in:
parent
b769d2eceb
commit
8eb639424a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user