正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -22,7 +22,7 @@ class WebSettingServiceController extends BaseController | @@ -22,7 +22,7 @@ class WebSettingServiceController extends BaseController | ||
| 22 | $lists = $webSettingServiceLogic->setting_service_list(); | 22 | $lists = $webSettingServiceLogic->setting_service_list(); |
| 23 | foreach ($lists as $k => $v){ | 23 | foreach ($lists as $k => $v){ |
| 24 | if($v['type'] == self::TYPE_CODE){ | 24 | if($v['type'] == self::TYPE_CODE){ |
| 25 | - $v['values_link'] = url('/b/image/' . $v['values']); | 25 | + $v['values_link'] = $this->getImageUrl($v['values']); |
| 26 | $lists[$k] = $v; | 26 | $lists[$k] = $v; |
| 27 | } | 27 | } |
| 28 | } | 28 | } |
| @@ -297,7 +297,8 @@ class ImageController extends Controller | @@ -297,7 +297,8 @@ class ImageController extends Controller | ||
| 297 | $imageModel = new ImageModel(); | 297 | $imageModel = new ImageModel(); |
| 298 | $lists = $imageModel->list([],$order = 'id',['id','hash','type','path','created_at']); | 298 | $lists = $imageModel->list([],$order = 'id',['id','hash','type','path','created_at']); |
| 299 | foreach ($lists as $k => $v){ | 299 | foreach ($lists as $k => $v){ |
| 300 | - $v['image_link'] = $this->getImageUrl($v['image']); | 300 | + $v['image_link'] = $this->getImageUrl($v['hash']); |
| 301 | + $lists[$k] = $v; | ||
| 301 | } | 302 | } |
| 302 | $this->response('success',Code::SUCCESS,$lists); | 303 | $this->response('success',Code::SUCCESS,$lists); |
| 303 | } | 304 | } |
| @@ -13,7 +13,6 @@ class WebSettingServiceLogic extends BaseLogic | @@ -13,7 +13,6 @@ class WebSettingServiceLogic extends BaseLogic | ||
| 13 | public function __construct() | 13 | public function __construct() |
| 14 | { | 14 | { |
| 15 | parent::__construct(); | 15 | parent::__construct(); |
| 16 | - | ||
| 17 | $this->model = new WebSettingService(); | 16 | $this->model = new WebSettingService(); |
| 18 | $this->param = $this->requestAll; | 17 | $this->param = $this->requestAll; |
| 19 | } | 18 | } |
-
请 注册 或 登录 后发表评论