作者 lyh

gx

... ... @@ -194,11 +194,12 @@ class ATemplateLogic extends BaseLogic
* @time :2023/11/3 17:21
*/
public function getSettingInfo(){
$data = [];
$bSettingModel = new Setting();
$info = $bSettingModel->read(['project_id'=>$this->param['project_id']]);
if($info === false){
$info = [];
$info = $bSettingModel->read(['project_id'=>$this->param['project_id']],['template_id']);
if($info !== false){
$data = $this->model->read(['template_id'=>$info['template_id']],['id','name']);
}
return $this->success($info);
return $this->success($data);
}
}
... ...