request->get(['order_sn','shop_name','user_name','courier_name','status','page_no','page_size']); if(empty($params['page_no']) || empty($params['page_size'])){ return $this->fail('缺少必要参数'); } $curlRes = curl_post(env('project.logistic_domain').'/common/logistic/lists',$params); return json($curlRes); } public function detail(): \think\response\Json { $params = $this->request->get(['id']); if(empty($params['id'])){ return $this->fail('缺少必要参数'); } $curlRes = curl_post(env('project.logistic_domain').'/common/logistic/detail',$params); return json($curlRes); } }