|
...
|
...
|
@@ -668,4 +668,32 @@ class ProjectController extends BaseController |
|
|
|
$lists = $renewLog->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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['from_order_id'],
|
|
|
|
'company_name'=>$info['company'],
|
|
|
|
'emails'=> '',
|
|
|
|
'phones'=>$info['mobile'],
|
|
|
|
'plan'=>Project::planMap()[$info['plan']],
|
|
|
|
'main_url'=>$info['domain'],
|
|
|
|
'test_url'=>$info['test_domain'],
|
|
|
|
'token'=>md5($info['from_order_id'].'qqs'.date('Y-m-d')),
|
|
|
|
];
|
|
|
|
$header = array(
|
|
|
|
"charset=utf-8"
|
|
|
|
);
|
|
|
|
return http_post($url,$data,$header);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|