zhangwei #35

Merged
weiz merged 2 commits from zhangwei into dev 2023-11-16 11:41:03 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit e86d0a7cbe - Show all commits

View File

@ -57,7 +57,8 @@
if(empty($params['company_name']) || empty($params['organization_code']) || empty($params['company_type']) || empty($params['master_name']) || empty($params['master_phone'])){
return $this->fail('缺少必要参数');
}
$result = curl_post(env('project.worker_domain').'/middleapi/company/create',http_build_query($params),$this->reqHeader);
$this->reqHeader[] = 'Content-Type: application/json; charset=utf-8';
$result = curl_post(env('project.worker_domain').'/middleapi/company/create',json_encode($params,true),$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}