request->get(['page_no','page_size','name']); $result = curl_post(env('project.worker_domain').'/middleapi/archives/lists',$params,$this->reqHeader); if($result['code'] == 0){ return $this->fail($result['msg']); } return json($result); } public function detail(): Json { $params = $this->request->get(['id']); if(empty($params['id'])){ return $this->fail('参数错误'); } $result = curl_post(env('project.worker_domain').'/middleapi/archives/detail',$params,$this->reqHeader); if($result['code'] == 0){ return $this->fail($result['msg']); } return json($result); } }