From d287d6f19c060aebfac6ac3e7ac7e47552af8446 Mon Sep 17 00:00:00 2001 From: Yurun Date: Wed, 24 Jun 2020 09:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E6=94=AF=E4=BB=98=EF=BC=8Cextend=5Fparams=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AlipayApp/App/Params/Pay/BusinessParams.php | 4 ++-- src/AlipayApp/App/Params/Pay/ExtendParams.php | 10 ++-------- src/AlipayApp/FTF/Params/ExtendParams.php | 10 ++-------- src/AlipayApp/FTF/Params/Pay/BusinessParams.php | 2 +- src/AlipayApp/FTF/Params/QR/BusinessParams.php | 2 +- src/AlipayApp/MiniApp/Params/Pay/BusinessParams.php | 2 +- src/AlipayApp/MiniApp/Params/Pay/ExtendParams.php | 10 ++-------- src/AlipayApp/Page/Params/GoodsDetail.php | 10 ++-------- src/AlipayApp/Page/Params/Pay/BusinessParams.php | 4 ++-- src/AlipayApp/Page/Params/Pay/ExtendParams.php | 10 ++-------- src/AlipayApp/Wap/Params/Pay/BusinessParams.php | 2 +- src/AlipayApp/Wap/Params/Pay/ExtendParams.php | 10 ++-------- 12 files changed, 20 insertions(+), 56 deletions(-) diff --git a/src/AlipayApp/App/Params/Pay/BusinessParams.php b/src/AlipayApp/App/Params/Pay/BusinessParams.php index 157add8..ec9dc65 100644 --- a/src/AlipayApp/App/Params/Pay/BusinessParams.php +++ b/src/AlipayApp/App/Params/Pay/BusinessParams.php @@ -96,7 +96,7 @@ class BusinessParams /** * 外部指定买家 - * @var [type] + * @var array */ public $ext_user_info; @@ -108,7 +108,7 @@ public function __construct() public function toString() { $obj = (array)$this; - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/App/Params/Pay/ExtendParams.php b/src/AlipayApp/App/Params/Pay/ExtendParams.php index febc92f..50f801b 100644 --- a/src/AlipayApp/App/Params/Pay/ExtendParams.php +++ b/src/AlipayApp/App/Params/Pay/ExtendParams.php @@ -1,17 +1,11 @@ sys_service_provider_id && null === $this->hb_fq_num && null === $this->hb_fq_seller_percent && null === $this->needBuyerRealnamed && null === $this->TRANS_MEMO) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file diff --git a/src/AlipayApp/FTF/Params/ExtendParams.php b/src/AlipayApp/FTF/Params/ExtendParams.php index d6a3cf3..8ea99ff 100644 --- a/src/AlipayApp/FTF/Params/ExtendParams.php +++ b/src/AlipayApp/FTF/Params/ExtendParams.php @@ -1,29 +1,23 @@ sys_service_provider_id) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file diff --git a/src/AlipayApp/FTF/Params/Pay/BusinessParams.php b/src/AlipayApp/FTF/Params/Pay/BusinessParams.php index 707f956..a71d52d 100644 --- a/src/AlipayApp/FTF/Params/Pay/BusinessParams.php +++ b/src/AlipayApp/FTF/Params/Pay/BusinessParams.php @@ -126,7 +126,7 @@ public function toString() { $obj['goods_detail'] = json_encode($obj['goods_detail']); } - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/FTF/Params/QR/BusinessParams.php b/src/AlipayApp/FTF/Params/QR/BusinessParams.php index 7552816..81f63ef 100644 --- a/src/AlipayApp/FTF/Params/QR/BusinessParams.php +++ b/src/AlipayApp/FTF/Params/QR/BusinessParams.php @@ -100,7 +100,7 @@ public function toString() { $obj['goods_detail'] = json_encode($obj['goods_detail']); } - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/MiniApp/Params/Pay/BusinessParams.php b/src/AlipayApp/MiniApp/Params/Pay/BusinessParams.php index 78090c3..42b67a4 100644 --- a/src/AlipayApp/MiniApp/Params/Pay/BusinessParams.php +++ b/src/AlipayApp/MiniApp/Params/Pay/BusinessParams.php @@ -136,7 +136,7 @@ public function __construct() public function toString() { $obj = (array)$this; - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/MiniApp/Params/Pay/ExtendParams.php b/src/AlipayApp/MiniApp/Params/Pay/ExtendParams.php index 34aa884..d167652 100644 --- a/src/AlipayApp/MiniApp/Params/Pay/ExtendParams.php +++ b/src/AlipayApp/MiniApp/Params/Pay/ExtendParams.php @@ -1,17 +1,11 @@ sys_service_provider_id && null === $this->card_type) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file diff --git a/src/AlipayApp/Page/Params/GoodsDetail.php b/src/AlipayApp/Page/Params/GoodsDetail.php index 48045f5..c90c20d 100644 --- a/src/AlipayApp/Page/Params/GoodsDetail.php +++ b/src/AlipayApp/Page/Params/GoodsDetail.php @@ -1,29 +1,23 @@ show_url) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file diff --git a/src/AlipayApp/Page/Params/Pay/BusinessParams.php b/src/AlipayApp/Page/Params/Pay/BusinessParams.php index 6ed7cf3..767e2a8 100644 --- a/src/AlipayApp/Page/Params/Pay/BusinessParams.php +++ b/src/AlipayApp/Page/Params/Pay/BusinessParams.php @@ -123,7 +123,7 @@ public function __construct() public function toString() { $obj = (array)$this; - $result = $obj['goods_detail']->toString(); + $result = $obj['goods_detail']->toArray(); if(null === $result) { unset($obj['goods_detail']); @@ -132,7 +132,7 @@ public function toString() { $obj['goods_detail'] = $result; } - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/Page/Params/Pay/ExtendParams.php b/src/AlipayApp/Page/Params/Pay/ExtendParams.php index 9c6004f..3b7632b 100644 --- a/src/AlipayApp/Page/Params/Pay/ExtendParams.php +++ b/src/AlipayApp/Page/Params/Pay/ExtendParams.php @@ -1,17 +1,11 @@ sys_service_provider_id && null === $this->hb_fq_num && null === $this->hb_fq_seller_percent) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file diff --git a/src/AlipayApp/Wap/Params/Pay/BusinessParams.php b/src/AlipayApp/Wap/Params/Pay/BusinessParams.php index 269423c..06c2237 100644 --- a/src/AlipayApp/Wap/Params/Pay/BusinessParams.php +++ b/src/AlipayApp/Wap/Params/Pay/BusinessParams.php @@ -121,7 +121,7 @@ public function __construct() public function toString() { $obj = (array)$this; - $result = $obj['extend_params']->toString(); + $result = $obj['extend_params']->toArray(); if(null === $result) { unset($obj['extend_params']); diff --git a/src/AlipayApp/Wap/Params/Pay/ExtendParams.php b/src/AlipayApp/Wap/Params/Pay/ExtendParams.php index 400b446..3a80bb2 100644 --- a/src/AlipayApp/Wap/Params/Pay/ExtendParams.php +++ b/src/AlipayApp/Wap/Params/Pay/ExtendParams.php @@ -1,17 +1,11 @@ sys_service_provider_id && null === $this->hb_fq_num && null === $this->hb_fq_seller_percent && null === $this->needBuyerRealnamed && null === $this->TRANS_MEMO) { return null; } - return $this->traitToString(); + return (array)$this; } } \ No newline at end of file