Compare commits

..

No commits in common. "f647466d4bb681cb5b21762f27af38d679bd46ff" and "a768dc5887c4179410ea7e752b59066aaddfe667" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View File

@ -28,17 +28,6 @@
}
return json($result);
}
//上传押金凭证
public function depositRechargeTransferVoucher(): Json
{
$params=$this->request->post(['company_id','deposit','voucher']);
$result = curl_post(env('project.worker_domain').'/middleapi/company/depositRechargeTransferVoucher',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
//公司详情
public function detail(): Json
@ -79,8 +68,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']);
}
@ -94,8 +82,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']);
}

View File

@ -54,7 +54,7 @@ class RefundController extends BaseAdminController
public function taskRecord(): Json
{
$params=$this->request->get(['user_info', 'start_time', 'end_time', 'sn', 'order_sn', 'refund_type', 'refund_status']);
$params=$this->request->get(['user_info', 'start_time', 'end_time', 'sn', 'order_sn']);
$result = curl_post(env('project.worker_domain').'/middleapi/refund/record',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);