作者 lyh

gx脚本

@@ -131,9 +131,9 @@ class AiCommandController extends BaseController @@ -131,9 +131,9 @@ class AiCommandController extends BaseController
131 'html.required' => 'html不能为空', 131 'html.required' => 'html不能为空',
132 ]); 132 ]);
133 $aiCommonModel = new AiCommand(); 133 $aiCommonModel = new AiCommand();
134 - $info = $aiCommonModel->read(['key'=>'ai_layout_design','project_id'=>$this->user['project_id']]); 134 + $info = $aiCommonModel->read(['key'=>'ai_layout_design','project_id'=>$this->user['project_id']],['ai']);
135 if($info === false){ 135 if($info === false){
136 - $info = $aiCommonModel->read(['key'=>'ai_layout_design','project_id'=>0]); 136 + $info = $aiCommonModel->read(['key'=>'ai_layout_design','project_id'=>0],['ai']);
137 } 137 }
138 $aiCommandService = new AiCommandService(); 138 $aiCommandService = new AiCommandService();
139 $ai = str_replace('{html}',$this->param['html'],$info['ai']); 139 $ai = str_replace('{html}',$this->param['html'],$info['ai']);