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