From aa5fca5429b0d1c2eedaaed1f4b462fdb7144893 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Wed, 6 Jun 2018 09:34:17 +0800 Subject: [PATCH] add image fix --- application/controllers/info_amp.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index f683e70c..7f5298e0 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -268,11 +268,17 @@ class Info_amp extends CI_Controller if ($icid) { $ic = $this->InfoContents_model->get_ic_contents2($icid); if ($ic) { + $show_photo_meta = $this->InfoMetas_model->get($icid, 'meta_use_list_picture'); + if ($show_photo_meta === 'no') { + $use_photo = ''; + } else { + $use_photo = $this->config->item('site_image_url').$ic->ic_photo; + } echo json_encode(array( "succ" => true, "info" => $ic->ic_content, "title" => $ic->ic_title, - "photo" => $this->config->item('site_image_url').$ic->ic_photo, + "photo" => $use_photo, "url" => $ic->ic_url, "site" => $this->config->item('site_url') ));