作者 lyh

gx

@@ -24,6 +24,12 @@ class ATemplateController extends BaseController @@ -24,6 +24,12 @@ class ATemplateController extends BaseController
24 */ 24 */
25 public function lists(ATemplateLogic $aTemplateLogic){ 25 public function lists(ATemplateLogic $aTemplateLogic){
26 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order); 26 $lists = $aTemplateLogic->aTemplateList($this->map,$this->page,$this->row,$this->order);
  27 + if(!empty($lists) && !empty($lists['list'])){
  28 + foreach ($lists['list'] as $k => &$v){
  29 + $v['image_link'] = getImageUrl($v['image']);
  30 + $lists['list'][$k] = $v;
  31 + }
  32 + }
27 $this->response('success',Code::SUCCESS,$lists); 33 $this->response('success',Code::SUCCESS,$lists);
28 } 34 }
29 35