作者 lyh

gx

@@ -726,6 +726,14 @@ class ImageController extends Controller @@ -726,6 +726,14 @@ class ImageController extends Controller
726 public function getImageSetting(){ 726 public function getImageSetting(){
727 $imageSetting = new ImageSetting(); 727 $imageSetting = new ImageSetting();
728 $info = $imageSetting->read(['project_id'=>$this->cache['project_id']]); 728 $info = $imageSetting->read(['project_id'=>$this->cache['project_id']]);
  729 + if($info !== false){
  730 + if(!empty($info['image_data'])){
  731 + $info['image_data'] = json_decode($info['image_data'],true);
  732 + }
  733 + if(!empty($info['str_data'])){
  734 + $info['str_data'] = json_decode($info['str_data'],true);
  735 + }
  736 + }
729 $this->response('success',Code::SUCCESS,$info); 737 $this->response('success',Code::SUCCESS,$info);
730 } 738 }
731 } 739 }