正在显示
1 个修改的文件
包含
0 行增加
和
38 行删除
| @@ -115,10 +115,6 @@ class ProjectLogic extends BaseLogic | @@ -115,10 +115,6 @@ class ProjectLogic extends BaseLogic | ||
| 115 | //创建站点 | 115 | //创建站点 |
| 116 | $this->createSite($this->param); | 116 | $this->createSite($this->param); |
| 117 | } | 117 | } |
| 118 | - //同步项目数据到询盘系统(完成建站后同步数据) | ||
| 119 | - if(in_array($this->map['type'], [Project::TYPE_TWO, Project::TYPE_THREE])){ | ||
| 120 | - $this->syncProjectDetails($this->param['id']); | ||
| 121 | - } | ||
| 122 | DB::commit(); | 118 | DB::commit(); |
| 123 | }catch (\Exception $e){ | 119 | }catch (\Exception $e){ |
| 124 | DB::rollBack(); | 120 | DB::rollBack(); |
| @@ -517,38 +513,4 @@ class ProjectLogic extends BaseLogic | @@ -517,38 +513,4 @@ class ProjectLogic extends BaseLogic | ||
| 517 | } | 513 | } |
| 518 | } | 514 | } |
| 519 | } | 515 | } |
| 520 | - | ||
| 521 | - /** | ||
| 522 | - * @remark :A端同步项目信息 | ||
| 523 | - * @name :syncProjectDetails | ||
| 524 | - * @author :lyh | ||
| 525 | - * @method :post | ||
| 526 | - * @time :2023/10/26 14:32 | ||
| 527 | - */ | ||
| 528 | - public function syncProjectDetails($project_id){ | ||
| 529 | - $projectModel = new Project(); | ||
| 530 | - $info = $projectModel->with('payment')->with('deploy_build') | ||
| 531 | - ->with('deploy_optimize')->where(['id'=>$project_id])->first()->toArray(); | ||
| 532 | - $url = 'https://form.globalso.com/api/globalsov6'; | ||
| 533 | - $data = [ | ||
| 534 | - 'id' => $info['id'], | ||
| 535 | - 'company_name'=>$info['company'], | ||
| 536 | - 'token'=>md5($info['id'].'qqs'.date('Y-m-d')), | ||
| 537 | - ]; | ||
| 538 | - if(!empty($info['mobile'])){ | ||
| 539 | - $data['mobile'] = $info['mobile']; | ||
| 540 | - } | ||
| 541 | - if(!empty($info['deploy_optimize']['domain'])){ | ||
| 542 | - $domainModel = new DomainInfo(); | ||
| 543 | - $data['main_url'] = $domainModel->getDomain($info['deploy_optimize']['domain']); | ||
| 544 | - } | ||
| 545 | - if($info['deploy_build']['test_domain']){ | ||
| 546 | - $data['test_url'] = $info['deploy_build']['test_domain']; | ||
| 547 | - } | ||
| 548 | - $header = array( | ||
| 549 | - "charset=utf-8" | ||
| 550 | - ); | ||
| 551 | - return http_post($url,$data,$header); | ||
| 552 | - } | ||
| 553 | - | ||
| 554 | } | 516 | } |
-
请 注册 或 登录 后发表评论