Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
6 个修改的文件
包含
16 行增加
和
11 行删除
| @@ -55,7 +55,7 @@ class RemainDay extends Command | @@ -55,7 +55,7 @@ class RemainDay extends Command | ||
| 55 | { | 55 | { |
| 56 | $list = Project::whereIn('type', [2,3,4])->get(); | 56 | $list = Project::whereIn('type', [2,3,4])->get(); |
| 57 | foreach ($list as $item){ | 57 | foreach ($list as $item){ |
| 58 | - if($item['type'] == 3){ | 58 | + if($item['type'] == Project::TYPE_TWO){ |
| 59 | //排名达标天数 | 59 | //排名达标天数 |
| 60 | $compliance_day = GoogleRankModel::where(['project_id' => $item['id'], 'lang' => ''])->value('compliance_day') ?: 0; | 60 | $compliance_day = GoogleRankModel::where(['project_id' => $item['id'], 'lang' => ''])->value('compliance_day') ?: 0; |
| 61 | $remain_day = $item['deploy_build']['service_duration'] - $compliance_day; | 61 | $remain_day = $item['deploy_build']['service_duration'] - $compliance_day; |
| @@ -619,6 +619,7 @@ class ProjectController extends BaseController | @@ -619,6 +619,7 @@ class ProjectController extends BaseController | ||
| 619 | $domain_array = parse_url($domain_pro ? $domain_pro->domain : ''); | 619 | $domain_array = parse_url($domain_pro ? $domain_pro->domain : ''); |
| 620 | $domain = $domain_array['host'] ?? $domain_array['path']; | 620 | $domain = $domain_array['host'] ?? $domain_array['path']; |
| 621 | } | 621 | } |
| 622 | + $manage = new Manage(); | ||
| 622 | $param = [ | 623 | $param = [ |
| 623 | "id" => $item['id'], | 624 | "id" => $item['id'], |
| 624 | "title" => $item['title'], | 625 | "title" => $item['title'], |
| @@ -639,8 +640,11 @@ class ProjectController extends BaseController | @@ -639,8 +640,11 @@ class ProjectController extends BaseController | ||
| 639 | "test_domain" => $item['deploy_build']['test_domain'] ?? '', | 640 | "test_domain" => $item['deploy_build']['test_domain'] ?? '', |
| 640 | "online_time" => $item['online_check']['qa_check_time'] ?? '', | 641 | "online_time" => $item['online_check']['qa_check_time'] ?? '', |
| 641 | "cooperate_date" => $item['cooperate_date'], | 642 | "cooperate_date" => $item['cooperate_date'], |
| 643 | + "project_manager_name" => $manage->getName($item['deploy_build']['manager_mid']), //项目经理 | ||
| 644 | + "after_sales_manager_name" => $manage->getName($item['deploy_optimize']['manager_mid']), //售后服务经理 | ||
| 645 | + "leader_name" => $manage->getName($item['deploy_build']['leader_mid']), //组长 | ||
| 642 | ]; | 646 | ]; |
| 643 | - if ($item['type'] == 3) { | 647 | + if ($item['type'] == Project::TYPE_TWO) { |
| 644 | $param['is_compliance'] = RankData::where('project_id', $item['id'])->where('lang', '')->value('is_compliance') ?: 0; | 648 | $param['is_compliance'] = RankData::where('project_id', $item['id'])->where('lang', '')->value('is_compliance') ?: 0; |
| 645 | } else { | 649 | } else { |
| 646 | $param['is_compliance'] = 1; | 650 | $param['is_compliance'] = 1; |
| @@ -90,7 +90,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -90,7 +90,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 90 | public function saveHtml(){ | 90 | public function saveHtml(){ |
| 91 | $html = $this->param['html']; | 91 | $html = $this->param['html']; |
| 92 | $this->saveCommonTemplate($html); | 92 | $this->saveCommonTemplate($html); |
| 93 | - $this->param['html'] = characterTruncation($html,'/<main>(.*?)<\/main>/s'); | 93 | + $this->param['html'] = characterTruncation($html,'/<main\b[^>]*>(.*?)<\/main>/s'); |
| 94 | $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); | 94 | $this->param['html_style'] = characterTruncation($html,'/<style id="globalsojs-styles">(.*?)<\/style>/s'); |
| 95 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); | 95 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 96 | if($rs === false){ | 96 | if($rs === false){ |
| @@ -110,8 +110,8 @@ class CategoryLogic extends BaseLogic | @@ -110,8 +110,8 @@ class CategoryLogic extends BaseLogic | ||
| 110 | * @time :2023/8/21 17:14 | 110 | * @time :2023/8/21 17:14 |
| 111 | */ | 111 | */ |
| 112 | public function categorySave(){ | 112 | public function categorySave(){ |
| 113 | - DB::beginTransaction(); | ||
| 114 | - try { | 113 | +// DB::beginTransaction(); |
| 114 | +// try { | ||
| 115 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 115 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 116 | //是否编辑路由 | 116 | //是否编辑路由 |
| 117 | $id = $this->editCategoryRoute($this->param['id'],$this->param['route']); | 117 | $id = $this->editCategoryRoute($this->param['id'],$this->param['route']); |
| @@ -128,11 +128,11 @@ class CategoryLogic extends BaseLogic | @@ -128,11 +128,11 @@ class CategoryLogic extends BaseLogic | ||
| 128 | $this->edit(['route'=>$route],['id'=>$id]); | 128 | $this->edit(['route'=>$route],['id'=>$id]); |
| 129 | //清除缓存 | 129 | //清除缓存 |
| 130 | Common::del_user_cache('product_category',$this->user['project_id']); | 130 | Common::del_user_cache('product_category',$this->user['project_id']); |
| 131 | - DB::commit(); | ||
| 132 | - } catch (\Exception $e){ | ||
| 133 | - DB::rollBack(); | ||
| 134 | - $this->fail('系统错误,请联系管理员'); | ||
| 135 | - } | 131 | +// DB::commit(); |
| 132 | +// } catch (\Exception $e){ | ||
| 133 | +// DB::rollBack(); | ||
| 134 | +// $this->fail('系统错误,请联系管理员'); | ||
| 135 | +// } | ||
| 136 | //通知更新 | 136 | //通知更新 |
| 137 | $notifyData = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_CATE, 'route'=>$route]; | 137 | $notifyData = ['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_CATE, 'route'=>$route]; |
| 138 | $this->updateNotify($notifyData); | 138 | $this->updateNotify($notifyData); |
| @@ -461,7 +461,7 @@ class RankDataLogic extends BaseLogic | @@ -461,7 +461,7 @@ class RankDataLogic extends BaseLogic | ||
| 461 | //保证关键词数 | 461 | //保证关键词数 |
| 462 | $keyword_num = DeployBuild::where('project_id', $project_id)->value('keyword_num'); | 462 | $keyword_num = DeployBuild::where('project_id', $project_id)->value('keyword_num'); |
| 463 | $type = Project::where('id', $project_id)->value('type'); | 463 | $type = Project::where('id', $project_id)->value('type'); |
| 464 | - if($keyword_num && $type == 2 && $first_page_num >= $keyword_num){ | 464 | + if($keyword_num && $type == Project::TYPE_TWO && $first_page_num >= $keyword_num){ |
| 465 | $model->compliance_day = $model->compliance_day + 1; | 465 | $model->compliance_day = $model->compliance_day + 1; |
| 466 | $model->is_compliance = 1; | 466 | $model->is_compliance = 1; |
| 467 | 467 |
-
请 注册 或 登录 后发表评论