|
@@ -23,6 +23,7 @@ use App\Models\Project\DeployBuild; |
|
@@ -23,6 +23,7 @@ use App\Models\Project\DeployBuild; |
|
23
|
use App\Models\Project\DeployOptimize;
|
23
|
use App\Models\Project\DeployOptimize;
|
|
24
|
use App\Models\Project\OnlineCheck;
|
24
|
use App\Models\Project\OnlineCheck;
|
|
25
|
use App\Models\Project\Project;
|
25
|
use App\Models\Project\Project;
|
|
|
|
26
|
+use App\Models\Project\ProjectAiSetting;
|
|
26
|
use App\Models\Project\ProjectKeyword;
|
27
|
use App\Models\Project\ProjectKeyword;
|
|
27
|
use App\Models\RouteMap\RouteMap;
|
28
|
use App\Models\RouteMap\RouteMap;
|
|
28
|
use App\Models\User\User;
|
29
|
use App\Models\User\User;
|
|
@@ -538,4 +539,21 @@ class PrivateController extends BaseController |
|
@@ -538,4 +539,21 @@ class PrivateController extends BaseController |
|
538
|
];
|
539
|
];
|
|
539
|
return $this->success($result);
|
540
|
return $this->success($result);
|
|
540
|
}
|
541
|
}
|
|
|
|
542
|
+
|
|
|
|
543
|
+ /**
|
|
|
|
544
|
+ * 获取项目信息,通过商户号
|
|
|
|
545
|
+ * @param Request $request
|
|
|
|
546
|
+ * @return false|string
|
|
|
|
547
|
+ */
|
|
|
|
548
|
+ public function getProjectByMchId(Request $request)
|
|
|
|
549
|
+ {
|
|
|
|
550
|
+ $mch_id = intval($request->input('mch_id'));
|
|
|
|
551
|
+ $project_setting = ProjectAiSetting::where(['mch_id' => $mch_id])->first();
|
|
|
|
552
|
+ if (empty($project_setting))
|
|
|
|
553
|
+ return $this->error('商户号未匹配到项目');
|
|
|
|
554
|
+ $domain = DomainInfo::where(['status' => 1, 'project_id' => $project_setting->project_id])->first();
|
|
|
|
555
|
+ if (empty($domain))
|
|
|
|
556
|
+ return $this->error('项目未匹配到域名');
|
|
|
|
557
|
+ return $this->success(['domain' => $domain->domain]);
|
|
|
|
558
|
+ }
|
|
541
|
} |
559
|
} |