作者 lyh

gx

@@ -193,12 +193,12 @@ class BaseController extends Controller @@ -193,12 +193,12 @@ 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);
200 } 200 }
201 - 201 +
202 /** 202 /**
203 * @remark :定制页面头部类型---根据source获取type类型 203 * @remark :定制页面头部类型---根据source获取type类型
204 * @name :getType 204 * @name :getType