'', 'expire_time' => '', 'id' => '' ]; $InvoiceIssuanceService = new InvoiceIssuanceService(); $result = $InvoiceIssuanceService->IssueAnInvoice($data); if ($result !== true) { throw new FuncException($result); } } catch (\Exception $e) { dump($e);die; } } public function getWechatData() { $pucode = '41108008'; $FeeService = new FeeService($pucode); return $FeeService->getUsers(); } public function apiInvoiceIssuance() { try { $param = $this->request->param(); $data = (new \app\service\invoice\TempInvoiceService())->IssueAnInvoice($param); return $this->buildSuccess($data); } catch (\Exception $e) { return $this->buildFailed(0, $e->getMessage()); } } }