|
...
|
...
|
@@ -23,6 +23,7 @@ use App\Models\Project\DeployBuild; |
|
|
|
use App\Models\Project\DeployOptimize;
|
|
|
|
use App\Models\Project\OnlineCheck;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\Project\ProjectAiSetting;
|
|
|
|
use App\Models\Project\ProjectKeyword;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\User\User;
|
|
...
|
...
|
@@ -538,4 +539,21 @@ class PrivateController extends BaseController |
|
|
|
];
|
|
|
|
return $this->success($result);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取项目信息,通过商户号
|
|
|
|
* @param Request $request
|
|
|
|
* @return false|string
|
|
|
|
*/
|
|
|
|
public function getProjectByMchId(Request $request)
|
|
|
|
{
|
|
|
|
$mch_id = intval($request->input('mch_id'));
|
|
|
|
$project_setting = ProjectAiSetting::where(['mch_id' => $mch_id])->first();
|
|
|
|
if (empty($project_setting))
|
|
|
|
return $this->error('商户号未匹配到项目');
|
|
|
|
$domain = DomainInfo::where(['status' => 1, 'project_id' => $project_setting->project_id])->first();
|
|
|
|
if (empty($domain))
|
|
|
|
return $this->error('项目未匹配到域名');
|
|
|
|
return $this->success(['domain' => $domain->domain]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|