|
...
|
...
|
@@ -15,7 +15,6 @@ use App\Models\News\News; |
|
|
|
use App\Models\Product\Category;
|
|
|
|
use App\Models\Product\CategoryRelated;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\KeywordRelated;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\Project\DeployOptimize;
|
|
|
|
use App\Models\Project\OnlineCheck;
|
|
...
|
...
|
@@ -390,8 +389,8 @@ class PrivateController extends BaseController |
|
|
|
$this->param['domain'] = $parsedUrl['host'] ?? $this->param['domain'];
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
$info = $domainModel->read(['domain'=>$this->param['domain']]);
|
|
|
|
if(empty($info)){
|
|
|
|
$this->response('当前域名不存在',Code::SYSTEM_ERROR);
|
|
|
|
if(empty($info) || ($info['project_id'] == DomainInfo::STATUS_ZERO)){
|
|
|
|
$this->response('当前域名不存在或当前域名未绑定',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
ProjectServer::useProject($info['project_id']);
|
|
|
|
$projectKeywordModel = new ProjectKeyword();
|
...
|
...
|
|