|
...
|
...
|
@@ -115,10 +115,6 @@ class ProjectLogic extends BaseLogic |
|
|
|
//创建站点
|
|
|
|
$this->createSite($this->param);
|
|
|
|
}
|
|
|
|
//同步项目数据到询盘系统(完成建站后同步数据)
|
|
|
|
if(in_array($this->map['type'], [Project::TYPE_TWO, Project::TYPE_THREE])){
|
|
|
|
$this->syncProjectDetails($this->param['id']);
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
...
|
...
|
@@ -517,38 +513,4 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :A端同步项目信息
|
|
|
|
* @name :syncProjectDetails
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/10/26 14:32
|
|
|
|
*/
|
|
|
|
public function syncProjectDetails($project_id){
|
|
|
|
$projectModel = new Project();
|
|
|
|
$info = $projectModel->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->where(['id'=>$project_id])->first()->toArray();
|
|
|
|
$url = 'https://form.globalso.com/api/globalsov6';
|
|
|
|
$data = [
|
|
|
|
'id' => $info['id'],
|
|
|
|
'company_name'=>$info['company'],
|
|
|
|
'token'=>md5($info['id'].'qqs'.date('Y-m-d')),
|
|
|
|
];
|
|
|
|
if(!empty($info['mobile'])){
|
|
|
|
$data['mobile'] = $info['mobile'];
|
|
|
|
}
|
|
|
|
if(!empty($info['deploy_optimize']['domain'])){
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
$data['main_url'] = $domainModel->getDomain($info['deploy_optimize']['domain']);
|
|
|
|
}
|
|
|
|
if($info['deploy_build']['test_domain']){
|
|
|
|
$data['test_url'] = $info['deploy_build']['test_domain'];
|
|
|
|
}
|
|
|
|
$header = array(
|
|
|
|
"charset=utf-8"
|
|
|
|
);
|
|
|
|
return http_post($url,$data,$header);
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|