Compare commits

..

No commits in common. "f30069fbad030897692bee95c2c9af2d790e888d" and "dcfc60ae56bcee15558440d41b5e8f0f42530ae0" have entirely different histories.

1 changed files with 2 additions and 4 deletions

View File

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