作者 lyh

gx

... ... @@ -294,29 +294,4 @@ class LoginController extends BaseController
}
return $data;
}
public function ceshi(){
$projectModel = new Project();
$info = $projectModel->with('payment')->with('deploy_build')
->with('deploy_optimize')->where(['id'=>1])->first()->toArray();
$url = 'https://form.globalso.com/api/globalsov6';
$data = [
'id' => $info['from_order_id'],
'company_name'=>$info['company'],
'token'=>md5($info['from_order_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);
}
}
... ...
... ... @@ -26,7 +26,6 @@ class CustomTemplateController extends BaseController
$lists = $customTemplateLogic->customTemplateLists($this->map,$this->page,$this->row,$this->order);
if (!empty($lists)){
foreach ($lists['list'] as $k => $v){
$v['route'] = $v['route'].'/';
$lists['list'][$k] = $v;
}
}
... ...
... ... @@ -529,9 +529,9 @@ class ProjectLogic extends BaseLogic
->with('deploy_optimize')->where(['id'=>$project_id])->first()->toArray();
$url = 'https://form.globalso.com/api/globalsov6';
$data = [
'id' => $info['from_order_id'],
'id' => $info['id'],
'company_name'=>$info['company'],
'token'=>md5($info['from_order_id'].'qqs'.date('Y-m-d')),
'token'=>md5($info['id'].'qqs'.date('Y-m-d')),
];
if(!empty($info['mobile'])){
$data['mobile'] = $info['mobile'];
... ...
... ... @@ -44,7 +44,7 @@ class WebSettingSeoLogic extends BaseLogic
* @time :2023/9/11 16:34
*/
public function seoSave(){
// try {
try {
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
if($info === false){
$this->param['project_id'] = $this->user['project_id'];
... ... @@ -52,9 +52,9 @@ class WebSettingSeoLogic extends BaseLogic
}else{
$this->model->edit($this->param,['project_id'=>$this->user['project_id']]);
}
// }catch (\Exception $e){
// $this->fail('error');
// }
}catch (\Exception $e){
$this->fail('error');
}
return $this->success();
}
}
... ...