作者 赵彬吉

update

... ... @@ -109,7 +109,13 @@ class InquiryController extends BaseController
public function getVisitUrl(Request $request){
$domain = $request->input('domain', '');
if(!$domain){
return $this->error('域名必填');
}
$project = Project::getProjectByDomain($domain);
if(!$project){
return $this->error('项目不存在');
}
$project_id = $project->id;
ProjectServer::useProject($project_id);
... ...