Merge branch 'dev' of https://gitea.lihaink.cn/weiz/data_center into dev
This commit is contained in:
commit
b2925f1ab2
|
@ -68,7 +68,8 @@
|
||||||
if(empty($params['company_name']) || empty($params['organization_code']) || empty($params['company_type']) || empty($params['master_name']) || empty($params['master_phone'])){
|
if(empty($params['company_name']) || empty($params['organization_code']) || empty($params['company_type']) || empty($params['master_name']) || empty($params['master_phone'])){
|
||||||
return $this->fail('缺少必要参数');
|
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){
|
if($result['code'] == 0){
|
||||||
return $this->fail($result['msg']);
|
return $this->fail($result['msg']);
|
||||||
}
|
}
|
||||||
|
@ -82,7 +83,8 @@
|
||||||
if(empty($params['id']) || empty($params['company_name']) || empty($params['organization_code']) || empty($params['company_type']) || empty($params['master_name']) || empty($params['master_phone'])){
|
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('缺少必要参数');
|
return $this->fail('缺少必要参数');
|
||||||
}
|
}
|
||||||
$result = curl_post(env('project.worker_domain').'/middleapi/company/edit',http_build_query($params),$this->reqHeader);
|
$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);
|
||||||
if($result['code'] == 0){
|
if($result['code'] == 0){
|
||||||
return $this->fail($result['msg']);
|
return $this->fail($result['msg']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue