作者 lyh

gx

@@ -67,6 +67,7 @@ class InquiryInfoController extends BaseController @@ -67,6 +67,7 @@ class InquiryInfoController extends BaseController
67 'type.required' => '类型不能为空', 67 'type.required' => '类型不能为空',
68 ]); 68 ]);
69 } 69 }
  70 +
70 /** 71 /**
71 * @remark :保存询盘信息 72 * @remark :保存询盘信息
72 * @name :save 73 * @name :save
@@ -8,8 +8,6 @@ use App\Models\Manage\BelongingGroup; @@ -8,8 +8,6 @@ use App\Models\Manage\BelongingGroup;
8 use App\Models\Manage\EntryPosition; 8 use App\Models\Manage\EntryPosition;
9 use App\Models\Manage\JobLevel; 9 use App\Models\Manage\JobLevel;
10 use App\Models\Manage\ManageHr; 10 use App\Models\Manage\ManageHr;
11 -use Illuminate\Support\Facades\Log;  
12 -  
13 11
14 /** 12 /**
15 * Class ManageHrLogic 13 * Class ManageHrLogic
@@ -38,11 +36,9 @@ class HrLogic extends BaseLogic @@ -38,11 +36,9 @@ class HrLogic extends BaseLogic
38 } 36 }
39 37
40 public function save($param){ 38 public function save($param){
41 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);  
42 foreach ($this->model::specieField() as $v){ 39 foreach ($this->model::specieField() as $v){
43 $param = $this->setJson($v,$param); 40 $param = $this->setJson($v,$param);
44 } 41 }
45 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);  
46 return parent::save($param); 42 return parent::save($param);
47 } 43 }
48 44
@@ -154,7 +154,6 @@ class InquiryInfoLogic extends BaseLogic @@ -154,7 +154,6 @@ class InquiryInfoLogic extends BaseLogic
154 $arr_url = explode(',',$param['forward_url']); 154 $arr_url = explode(',',$param['forward_url']);
155 foreach ($arr_url as $v){ 155 foreach ($arr_url as $v){
156 $data['url'] = $v; 156 $data['url'] = $v;
157 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($data).'debug---------------33333333333', true) . PHP_EOL, FILE_APPEND);  
158 $this->inquiryForward($data); 157 $this->inquiryForward($data);
159 } 158 }
160 //更新数据库,修改状态为已转发 159 //更新数据库,修改状态为已转发
@@ -125,7 +125,7 @@ class BTemplateLogic extends BaseLogic @@ -125,7 +125,7 @@ class BTemplateLogic extends BaseLogic
125 $this->fail('请先装修首页'); 125 $this->fail('请先装修首页');
126 } 126 }
127 $html = preg_replace('/<style id="vvvebjs-styles">(.*?)<\/style>/s', "<style id='vvvebjs-styles'></style>", $homeTemplateInfo['html']); 127 $html = preg_replace('/<style id="vvvebjs-styles">(.*?)<\/style>/s', "<style id='vvvebjs-styles'></style>", $homeTemplateInfo['html']);
128 - $html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main></main>", $html); 128 + $html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main>{$this->getProductModule()}</main>", $html);
129 }else{ 129 }else{
130 $homeTemplateInfo = $this->webTemplateInfo($info['template_id'],1,0); 130 $homeTemplateInfo = $this->webTemplateInfo($info['template_id'],1,0);
131 if($homeTemplateInfo === false){ 131 if($homeTemplateInfo === false){
@@ -338,4 +338,18 @@ class BTemplateLogic extends BaseLogic @@ -338,4 +338,18 @@ class BTemplateLogic extends BaseLogic
338 //返回 338 //返回
339 return $this->success($data); 339 return $this->success($data);
340 } 340 }
  341 +
  342 + /**
  343 + * @remark :默认产品模块
  344 + * @name :getProductModule
  345 + * @author :lyh
  346 + * @method :post
  347 + * @time :2023/7/27 15:08
  348 + */
  349 + public function getProductModule(){
  350 + //获取公共主题头部底部
  351 + $serviceSettingModel = new ServiceSettingModel();
  352 + $info = $serviceSettingModel->read(['type'=>3]);
  353 + return $this->success($info);
  354 + }
341 } 355 }