Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
3 个修改的文件
包含
21 行增加
和
3 行删除
| @@ -64,8 +64,7 @@ class ProjectLogic extends BaseLogic | @@ -64,8 +64,7 @@ class ProjectLogic extends BaseLogic | ||
| 64 | * @time :2023/7/28 17:11 | 64 | * @time :2023/7/28 17:11 |
| 65 | */ | 65 | */ |
| 66 | public function getProjectInfo($id){ | 66 | public function getProjectInfo($id){ |
| 67 | - $info = $this->model->with('payment')->with('deploy_build')->with('deploy_optimize')->with('online_check') | ||
| 68 | - ->with('project_after')->where(['id'=>$id])->first()->toArray(); | 67 | + $info = $this->model->with(['payment', 'deploy_build', 'deploy_optimize', 'online_check', 'project_after','inquiry_filter_config'])->where(['id'=>$id])->first()->toArray(); |
| 69 | $info['online_check']['name'] = (new Manage())->getName($info['online_check']['created_manage_id'] ?? 0); | 68 | $info['online_check']['name'] = (new Manage())->getName($info['online_check']['created_manage_id'] ?? 0); |
| 70 | $info['deploy_optimize']['minor_keywords'] = !empty($info['deploy_optimize']['minor_keywords']) ? json_decode($info['deploy_optimize']['minor_keywords']) : []; | 69 | $info['deploy_optimize']['minor_keywords'] = !empty($info['deploy_optimize']['minor_keywords']) ? json_decode($info['deploy_optimize']['minor_keywords']) : []; |
| 71 | $info['init_domain'] = $this->getInitDomain($info['serve_id'])['domain']; | 70 | $info['init_domain'] = $this->getInitDomain($info['serve_id'])['domain']; |
| @@ -16,5 +16,12 @@ class InquiryFilterConfig extends Base | @@ -16,5 +16,12 @@ class InquiryFilterConfig extends Base | ||
| 16 | //设置关联表名 | 16 | //设置关联表名 |
| 17 | protected $table = 'gl_project_inquiry_filter_config'; | 17 | protected $table = 'gl_project_inquiry_filter_config'; |
| 18 | 18 | ||
| 19 | - | 19 | + protected $casts = [ |
| 20 | + 'filter_countries' => 'array', | ||
| 21 | + 'filter_contents' => 'array', | ||
| 22 | + 'filter_referers' => 'array', | ||
| 23 | + 'filter_emails' => 'array', | ||
| 24 | + 'filter_mobiles' => 'array', | ||
| 25 | + 'filter_names' => 'array', | ||
| 26 | + ]; | ||
| 20 | } | 27 | } |
| @@ -207,6 +207,18 @@ class Project extends Base | @@ -207,6 +207,18 @@ class Project extends Base | ||
| 207 | return self::hasOne(After::class, 'project_id', 'id'); | 207 | return self::hasOne(After::class, 'project_id', 'id'); |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | + | ||
| 211 | + /** | ||
| 212 | + * 询盘过滤配置 | ||
| 213 | + * @return \Illuminate\Database\Eloquent\Relations\HasOne | ||
| 214 | + * @author zbj | ||
| 215 | + * @date 2024/1/19 | ||
| 216 | + */ | ||
| 217 | + public function inquiry_filter_config() | ||
| 218 | + { | ||
| 219 | + return self::hasOne(InquiryFilterConfig::class, 'project_id', 'id'); | ||
| 220 | + } | ||
| 221 | + | ||
| 210 | /** | 222 | /** |
| 211 | * 域名 | 223 | * 域名 |
| 212 | * @return \Illuminate\Database\Eloquent\Relations\HasOne | 224 | * @return \Illuminate\Database\Eloquent\Relations\HasOne |
-
请 注册 或 登录 后发表评论