正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -194,11 +194,12 @@ class ATemplateLogic extends BaseLogic | @@ -194,11 +194,12 @@ class ATemplateLogic extends BaseLogic | ||
| 194 | * @time :2023/11/3 17:21 | 194 | * @time :2023/11/3 17:21 |
| 195 | */ | 195 | */ |
| 196 | public function getSettingInfo(){ | 196 | public function getSettingInfo(){ |
| 197 | + $data = []; | ||
| 197 | $bSettingModel = new Setting(); | 198 | $bSettingModel = new Setting(); |
| 198 | - $info = $bSettingModel->read(['project_id'=>$this->param['project_id']]); | ||
| 199 | - if($info === false){ | ||
| 200 | - $info = []; | 199 | + $info = $bSettingModel->read(['project_id'=>$this->param['project_id']],['template_id']); |
| 200 | + if($info !== false){ | ||
| 201 | + $data = $this->model->read(['template_id'=>$info['template_id']],['id','name']); | ||
| 201 | } | 202 | } |
| 202 | - return $this->success($info); | 203 | + return $this->success($data); |
| 203 | } | 204 | } |
| 204 | } | 205 | } |
-
请 注册 或 登录 后发表评论