作者 lyh

gx

... ... @@ -67,6 +67,7 @@ class InquiryInfoController extends BaseController
'type.required' => '类型不能为空',
]);
}
/**
* @remark :保存询盘信息
* @name :save
... ...
... ... @@ -8,8 +8,6 @@ use App\Models\Manage\BelongingGroup;
use App\Models\Manage\EntryPosition;
use App\Models\Manage\JobLevel;
use App\Models\Manage\ManageHr;
use Illuminate\Support\Facades\Log;
/**
* Class ManageHrLogic
... ... @@ -38,11 +36,9 @@ class HrLogic extends BaseLogic
}
public function save($param){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);
foreach ($this->model::specieField() as $v){
$param = $this->setJson($v,$param);
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);
return parent::save($param);
}
... ...
... ... @@ -154,7 +154,6 @@ class InquiryInfoLogic extends BaseLogic
$arr_url = explode(',',$param['forward_url']);
foreach ($arr_url as $v){
$data['url'] = $v;
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(json_encode($data).'debug---------------33333333333', true) . PHP_EOL, FILE_APPEND);
$this->inquiryForward($data);
}
//更新数据库,修改状态为已转发
... ...
... ... @@ -125,7 +125,7 @@ class BTemplateLogic extends BaseLogic
$this->fail('请先装修首页');
}
$html = preg_replace('/<style id="vvvebjs-styles">(.*?)<\/style>/s', "<style id='vvvebjs-styles'></style>", $homeTemplateInfo['html']);
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main></main>", $html);
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main>{$this->getProductModule()}</main>", $html);
}else{
$homeTemplateInfo = $this->webTemplateInfo($info['template_id'],1,0);
if($homeTemplateInfo === false){
... ... @@ -338,4 +338,18 @@ class BTemplateLogic extends BaseLogic
//返回
return $this->success($data);
}
/**
* @remark :默认产品模块
* @name :getProductModule
* @author :lyh
* @method :post
* @time :2023/7/27 15:08
*/
public function getProductModule(){
//获取公共主题头部底部
$serviceSettingModel = new ServiceSettingModel();
$info = $serviceSettingModel->read(['type'=>3]);
return $this->success($info);
}
}
... ...