作者 lyh

gx

@@ -357,14 +357,11 @@ class BTemplateLogic extends BaseLogic @@ -357,14 +357,11 @@ class BTemplateLogic extends BaseLogic
357 */ 357 */
358 public function getCommonHtml($source,$is_list,$template_id,$is_custom = 0){ 358 public function getCommonHtml($source,$is_list,$template_id,$is_custom = 0){
359 $type = $this->getType($source,$is_list,$is_custom); 359 $type = $this->getType($source,$is_list,$is_custom);
360 - if($template_id == 102){  
361 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($type, true) . PHP_EOL, FILE_APPEND);  
362 - }  
363 $data = [ 360 $data = [
364 'template_id' => $template_id, 361 'template_id' => $template_id,
365 'project_id' => $this->user['project_id'], 362 'project_id' => $this->user['project_id'],
366 'type'=>$type, 363 'type'=>$type,
367 - 'is_custom'=>$is_custom, 364 + 'is_custom'=>0,
368 ]; 365 ];
369 $commonTemplateModel = new BTemplateCommon(); 366 $commonTemplateModel = new BTemplateCommon();
370 $commonInfo = $commonTemplateModel->read($data); 367 $commonInfo = $commonTemplateModel->read($data);