正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -15,7 +15,6 @@ use App\Models\News\News; | @@ -15,7 +15,6 @@ use App\Models\News\News; | ||
| 15 | use App\Models\Product\Category; | 15 | use App\Models\Product\Category; |
| 16 | use App\Models\Product\CategoryRelated; | 16 | use App\Models\Product\CategoryRelated; |
| 17 | use App\Models\Product\Keyword; | 17 | use App\Models\Product\Keyword; |
| 18 | -use App\Models\Product\KeywordRelated; | ||
| 19 | use App\Models\Product\Product; | 18 | use App\Models\Product\Product; |
| 20 | use App\Models\Project\DeployOptimize; | 19 | use App\Models\Project\DeployOptimize; |
| 21 | use App\Models\Project\OnlineCheck; | 20 | use App\Models\Project\OnlineCheck; |
| @@ -390,8 +389,8 @@ class PrivateController extends BaseController | @@ -390,8 +389,8 @@ class PrivateController extends BaseController | ||
| 390 | $this->param['domain'] = $parsedUrl['host'] ?? $this->param['domain']; | 389 | $this->param['domain'] = $parsedUrl['host'] ?? $this->param['domain']; |
| 391 | $domainModel = new DomainInfo(); | 390 | $domainModel = new DomainInfo(); |
| 392 | $info = $domainModel->read(['domain'=>$this->param['domain']]); | 391 | $info = $domainModel->read(['domain'=>$this->param['domain']]); |
| 393 | - if(empty($info)){ | ||
| 394 | - $this->response('当前域名不存在',Code::SYSTEM_ERROR); | 392 | + if(empty($info) || ($info['project_id'] == DomainInfo::STATUS_ZERO)){ |
| 393 | + $this->response('当前域名不存在或当前域名未绑定',Code::SYSTEM_ERROR); | ||
| 395 | } | 394 | } |
| 396 | ProjectServer::useProject($info['project_id']); | 395 | ProjectServer::useProject($info['project_id']); |
| 397 | $projectKeywordModel = new ProjectKeyword(); | 396 | $projectKeywordModel = new ProjectKeyword(); |
-
请 注册 或 登录 后发表评论