From 124745c341693309b1f1fa6e7cf8f1495bc16d36 Mon Sep 17 00:00:00 2001 From: molong Date: Sun, 17 Jul 2016 12:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=9B=AE=E5=BD=95=E4=B8=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=B7=AF=E5=BE=84=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common.php b/application/common.php index 7537fef1..695bc1e6 100644 --- a/application/common.php +++ b/application/common.php @@ -253,7 +253,7 @@ function get_cover($cover_id, $field = null){ $picture = db('Picture')->where(array('status'=>1,'id'=>$cover_id))->find(); if($field == 'path'){ if(!empty($picture['url'])){ - $picture['path'] = $picture['url'] ? $picture['url'] : BASE_PATH . '/public/images/default.png'; + $picture['path'] = $picture['url'] ? BASE_PATH . $picture['url'] : BASE_PATH . '/public/images/default.png'; }else{ $picture['path'] = $picture['path'] ? BASE_PATH . $picture['path'] : BASE_PATH . '/public/images/default.png'; }