authInitialize(); $this->his_soap = app('HisSoapService'); } /** * 列表 * @throws GeneralException */ public function getLists() { $response = $this->his_soap->getDictionaryLists(); if (!isset($response['RESULTCODE']) || $response['RESULTCODE'] !== '0') { throw new GeneralException($response['ERRORMSG'] ?? '找不到缴费项目分类列表!', Response::HTTP_SERVICE_UNAVAILABLE); } return $response; } /** * 详情 * @param int $type_id * @return array * @throws GeneralException */ public function getDetails(int $type_id): array { $response = $this->his_soap->getDictionaryDetails($type_id); if (!isset($response['RESULTCODE']) || $response['RESULTCODE'] !== '0') { throw new GeneralException($response['ERRORMSG'] ?? '找不到缴费项目分类详情!', Response::HTTP_SERVICE_UNAVAILABLE); } return $response; } }