作者 lyh

gx

... ... @@ -100,30 +100,4 @@ class LoginController extends BaseController
SmsLog::createLog($mobile, $code['code'],SmsLog::TYPE_MANAGER_LOGIN);
$this->response('success');
}
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);
}
}
... ...
... ... @@ -16,6 +16,7 @@ use App\Helper\Common;
use App\Helper\Translate;
use App\Helper\Wechat;
use App\Http\Logic\Bside\User\UserLoginLogic;
use App\Models\Domain\DomainInfo;
use App\Models\Project\Project;
use App\Models\Service\Service;
use App\Models\Sms\SmsLog;
... ... @@ -293,5 +294,29 @@ 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);
}
}
... ...