正在显示
2 个修改的文件
包含
26 行增加
和
0 行删除
| @@ -10,6 +10,7 @@ use App\Jobs\EditDomainBt; | @@ -10,6 +10,7 @@ use App\Jobs\EditDomainBt; | ||
| 10 | use App\Models\Devops\ServerConfig; | 10 | use App\Models\Devops\ServerConfig; |
| 11 | use App\Models\Devops\Servers; | 11 | use App\Models\Devops\Servers; |
| 12 | use App\Models\Devops\ServersIp; | 12 | use App\Models\Devops\ServersIp; |
| 13 | +use App\Models\Domain\DomainCreateTask; | ||
| 13 | use App\Models\Domain\DomainInfo; | 14 | use App\Models\Domain\DomainInfo; |
| 14 | use App\Models\Project\CountryCustom; | 15 | use App\Models\Project\CountryCustom; |
| 15 | use App\Models\Project\DeployOptimize; | 16 | use App\Models\Project\DeployOptimize; |
| @@ -315,6 +316,16 @@ class DomainInfoLogic extends BaseLogic | @@ -315,6 +316,16 @@ class DomainInfoLogic extends BaseLogic | ||
| 315 | 'is_redirect' => $this->param['is_redirect'] ?? 0, | 316 | 'is_redirect' => $this->param['is_redirect'] ?? 0, |
| 316 | ]; | 317 | ]; |
| 317 | $this->model->edit($data,['id'=>$this->param['id']]); | 318 | $this->model->edit($data,['id'=>$this->param['id']]); |
| 319 | + | ||
| 320 | + //新站建站任务 | ||
| 321 | + $task_model = new DomainCreateTask(); | ||
| 322 | + $task_info = $task_model->read(['domain_id'=>$this->param['id'],'status'=>['<',DomainCreateTask::STATUS_SUC]]); | ||
| 323 | + if(!$task_info){ | ||
| 324 | + $task_model->add([ | ||
| 325 | + 'project_id' => $info['project_id'], | ||
| 326 | + 'domain_id' => $this->param['id'] | ||
| 327 | + ]); | ||
| 328 | + } | ||
| 318 | //主站生成证书 | 329 | //主站生成证书 |
| 319 | EditDomainBt::dispatch($this->param['id']); | 330 | EditDomainBt::dispatch($this->param['id']); |
| 320 | //amp站生成证书 | 331 | //amp站生成证书 |
app/Models/Domain/DomainCreateTask.php
0 → 100644
-
请 注册 或 登录 后发表评论