作者 lyh

gx

@@ -193,7 +193,7 @@ class BaseController extends Controller @@ -193,7 +193,7 @@ class BaseController extends Controller
193 $bSettingModel = new Setting(); 193 $bSettingModel = new Setting();
194 $info = $bSettingModel->read(['project_id'=>$this->user['project_id']]); 194 $info = $bSettingModel->read(['project_id'=>$this->user['project_id']]);
195 if($info === false){ 195 if($info === false){
196 - $this->fail('请先选择模版'); 196 + return $this->success($template_id);
197 } 197 }
198 $template_id = $info['template_id']; 198 $template_id = $info['template_id'];
199 return $this->success($template_id); 199 return $this->success($template_id);