作者 lyh

gx

@@ -148,6 +148,8 @@ class BaseController extends Controller @@ -148,6 +148,8 @@ class BaseController extends Controller
148 public function getImageUrl($hash){ 148 public function getImageUrl($hash){
149 if(is_array($hash)){ 149 if(is_array($hash)){
150 foreach ($hash as $k => $v){ 150 foreach ($hash as $k => $v){
  151 + var_dump($v);
  152 + die();
151 $url[] = $this->getImageUrl($v); 153 $url[] = $this->getImageUrl($v);
152 } 154 }
153 }else{ 155 }else{
@@ -20,8 +20,6 @@ class HrController extends BaseController @@ -20,8 +20,6 @@ class HrController extends BaseController
20 $lists = $logic->getHrList($this->map,$this->page,$this->row,$this->order); 20 $lists = $logic->getHrList($this->map,$this->page,$this->row,$this->order);
21 if(!empty($lists['list'])){ 21 if(!empty($lists['list'])){
22 foreach ($lists['list'] as $k => $v){ 22 foreach ($lists['list'] as $k => $v){
23 - var_dump(json_decode($v['photo_gallery']));  
24 - die();  
25 $v['photo_gallery_link'] = $this->getImageUrl(json_decode($v['photo_gallery'])); 23 $v['photo_gallery_link'] = $this->getImageUrl(json_decode($v['photo_gallery']));
26 $v['id_card_gallery_link'] = $this->getImageUrl(json_decode($v['id_card_gallery'])); 24 $v['id_card_gallery_link'] = $this->getImageUrl(json_decode($v['id_card_gallery']));
27 $v['certificate_gallery_link'] = $this->getImageUrl(json_decode($v['certificate_gallery'])); 25 $v['certificate_gallery_link'] = $this->getImageUrl(json_decode($v['certificate_gallery']));