Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
5 个修改的文件
包含
13 行增加
和
6 行删除
| @@ -83,7 +83,7 @@ class DomainInfo extends Command | @@ -83,7 +83,7 @@ class DomainInfo extends Command | ||
| 83 | public function startUpdateCert() | 83 | public function startUpdateCert() |
| 84 | { | 84 | { |
| 85 | $domainModel = new DomainInfoModel(); | 85 | $domainModel = new DomainInfoModel(); |
| 86 | - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 | 86 | + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期 |
| 87 | $list = $domainModel->where('status', '!=', 2)->where(function ($query) use ($end_day) { | 87 | $list = $domainModel->where('status', '!=', 2)->where(function ($query) use ($end_day) { |
| 88 | $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); | 88 | $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); |
| 89 | })->get()->toArray(); | 89 | })->get()->toArray(); |
| @@ -111,7 +111,7 @@ class DomainInfo extends Command | @@ -111,7 +111,7 @@ class DomainInfo extends Command | ||
| 111 | public function startUpdateAmpCert() | 111 | public function startUpdateAmpCert() |
| 112 | { | 112 | { |
| 113 | $domainModel = new DomainInfoModel(); | 113 | $domainModel = new DomainInfoModel(); |
| 114 | - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 | 114 | + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期 |
| 115 | $list = $domainModel->where('status', '!=', 2)->where('amp_status', 1)->where(function ($query) use ($end_day) { | 115 | $list = $domainModel->where('status', '!=', 2)->where('amp_status', 1)->where(function ($query) use ($end_day) { |
| 116 | $query->whereNull('amp_certificate_end_time')->orWhere('amp_certificate_end_time', '<', $end_day); | 116 | $query->whereNull('amp_certificate_end_time')->orWhere('amp_certificate_end_time', '<', $end_day); |
| 117 | })->get()->toArray(); | 117 | })->get()->toArray(); |
| @@ -149,7 +149,7 @@ class DomainInfo extends Command | @@ -149,7 +149,7 @@ class DomainInfo extends Command | ||
| 149 | public function startUpdateCustomCert() | 149 | public function startUpdateCustomCert() |
| 150 | { | 150 | { |
| 151 | $customModel = new CountryCustom(); | 151 | $customModel = new CountryCustom(); |
| 152 | - $end_day = date('Y-m-d H:i:s', time() + 2 * 24 * 3600);//2天后到期 | 152 | + $end_day = date('Y-m-d H:i:s', time() + 3 * 24 * 3600);//3天后到期 |
| 153 | $list = $customModel->where('status', 1)->where('is_create', 1)->where(function ($query) use ($end_day) { | 153 | $list = $customModel->where('status', 1)->where('is_create', 1)->where(function ($query) use ($end_day) { |
| 154 | $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); | 154 | $query->whereNull('certificate_end_time')->orWhere('certificate_end_time', '<', $end_day); |
| 155 | })->get()->toArray(); | 155 | })->get()->toArray(); |
| @@ -55,7 +55,7 @@ class UpdateRoute extends Command | @@ -55,7 +55,7 @@ class UpdateRoute extends Command | ||
| 55 | */ | 55 | */ |
| 56 | public function handle(){ | 56 | public function handle(){ |
| 57 | $projectModel = new Project(); | 57 | $projectModel = new Project(); |
| 58 | - $list = $projectModel->list(['id'=>951]); | 58 | + $list = $projectModel->list(['id'=>687]); |
| 59 | $data = []; | 59 | $data = []; |
| 60 | foreach ($list as $v){ | 60 | foreach ($list as $v){ |
| 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| @@ -266,6 +266,8 @@ class ProjectLogic extends BaseLogic | @@ -266,6 +266,8 @@ class ProjectLogic extends BaseLogic | ||
| 266 | protected function saveProjectDeployBuild($deploy_build){ | 266 | protected function saveProjectDeployBuild($deploy_build){ |
| 267 | $deployBuildModel = new DeployBuild(); | 267 | $deployBuildModel = new DeployBuild(); |
| 268 | $deploy_build['configuration'] = Arr::a2s(!empty($deploy_build['configuration']) ? $deploy_build['configuration'] : []); | 268 | $deploy_build['configuration'] = Arr::a2s(!empty($deploy_build['configuration']) ? $deploy_build['configuration'] : []); |
| 269 | + $deploy_build['main_verify_file'] = $deploy_build['main_verify_file'] ?? ''; | ||
| 270 | + $deploy_build['amp_verify_file'] = $deploy_build['amp_verify_file'] ?? ''; | ||
| 269 | $deployBuildModel->edit($deploy_build,['id'=>$deploy_build['id']]); | 271 | $deployBuildModel->edit($deploy_build,['id'=>$deploy_build['id']]); |
| 270 | return $this->success(); | 272 | return $this->success(); |
| 271 | } | 273 | } |
| @@ -4,6 +4,7 @@ namespace App\Models\Inquiry; | @@ -4,6 +4,7 @@ namespace App\Models\Inquiry; | ||
| 4 | 4 | ||
| 5 | use App\Helper\FormGlobalsoApi; | 5 | use App\Helper\FormGlobalsoApi; |
| 6 | use App\Models\Base; | 6 | use App\Models\Base; |
| 7 | +use App\Utils\LogUtils; | ||
| 7 | use Illuminate\Database\Eloquent\SoftDeletes; | 8 | use Illuminate\Database\Eloquent\SoftDeletes; |
| 8 | use Illuminate\Support\Facades\DB; | 9 | use Illuminate\Support\Facades\DB; |
| 9 | 10 | ||
| @@ -83,7 +84,10 @@ class InquiryFormData extends Base | @@ -83,7 +84,10 @@ class InquiryFormData extends Base | ||
| 83 | $data['message'].= "<br/>" . $k .': ' . $v; | 84 | $data['message'].= "<br/>" . $k .': ' . $v; |
| 84 | } | 85 | } |
| 85 | } | 86 | } |
| 86 | - !$has_file && (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data); | 87 | + if(!$has_file) { |
| 88 | + $res = (new FormGlobalsoApi())->submitInquiry($ip, $referer, $submit_at, $data); | ||
| 89 | + LogUtils::info('询盘提交', $data, $res?: []); | ||
| 90 | + } | ||
| 87 | } | 91 | } |
| 88 | return true; | 92 | return true; |
| 89 | } | 93 | } |
| @@ -69,7 +69,8 @@ class SyncSubmitTaskService | @@ -69,7 +69,8 @@ class SyncSubmitTaskService | ||
| 69 | ]; | 69 | ]; |
| 70 | 70 | ||
| 71 | if(Str::contains($referer, $url)){ | 71 | if(Str::contains($referer, $url)){ |
| 72 | - $referer = pathinfo($referer,PATHINFO_DIRNAME); | 72 | + $referer = parse_url($referer); |
| 73 | + $referer = !empty($referer['host']) ? $referer['scheme'] . '://' . $referer['host'] . '/' : $referer['path']; | ||
| 73 | } | 74 | } |
| 74 | return $referer; | 75 | return $referer; |
| 75 | } | 76 | } |
-
请 注册 或 登录 后发表评论