From 4d52dcfafa9fe6fb8b22c6b3f1030a245f23d831 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 7 May 2018 17:25:03 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9soap?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/SoapService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extend/service/SoapService.php b/extend/service/SoapService.php index 06f94caf4..de6c7fbc5 100644 --- a/extend/service/SoapService.php +++ b/extend/service/SoapService.php @@ -50,6 +50,7 @@ class SoapService * @param string $name SOAP调用方法名 * @param array|string $arguments SOAP调用参数 * @return array|string|bool + * @throws \think\Exception */ public function __call($name, $arguments) { @@ -57,8 +58,8 @@ class SoapService return $this->soap->__soapCall($name, $arguments); } catch (\Exception $e) { Log::error("Soap Error. Call {$name} Method --- " . $e->getMessage()); + throw new Exception($e->getMessage(), $e->getCode()); } - return false; } }