作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

后台设备模块开发

@@ -209,8 +209,8 @@ class AdminLightController extends AdminBaseController @@ -209,8 +209,8 @@ class AdminLightController extends AdminBaseController
209 $this->assign('temple', $temple); 209 $this->assign('temple', $temple);
210 $area = Db::name('temple_area')->where('temple_id', $data['temple_id'])->select(); 210 $area = Db::name('temple_area')->where('temple_id', $data['temple_id'])->select();
211 $this->assign('area', $area); 211 $this->assign('area', $area);
212 - $location=$this->getLocation($id=$data['area_id']);  
213 - print_r($location); 212 + $location=json_decode($this->getLocation($id=$data['area_id']),true);
  213 +
214 $this->assign('location', $location); 214 $this->assign('location', $location);
215 $this->assign('list', $data); 215 $this->assign('list', $data);
216 return $this->fetch(); 216 return $this->fetch();