正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论