From 553a65bfb7e4a149f6abde631b89e0653ed4adda Mon Sep 17 00:00:00 2001 From: "PRESCO\\yifan.shu" Date: Wed, 18 Jan 2023 09:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=90=86=E5=95=86?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PayuniApi.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PayuniApi.php b/src/PayuniApi.php index d16bdeb..faf4092 100644 --- a/src/PayuniApi.php +++ b/src/PayuniApi.php @@ -209,9 +209,15 @@ private function CheckParams() { * @ dateTime 2022-08-23 */ private function SetParams(string $type = '') { + $isPlatForm = ''; + if(!empty($this->encryptInfo['IsPlatForm'])){ + $isPlatForm = $this->encryptInfo['IsPlatForm']; + unset($this->encryptInfo['IsPlatForm']); + } $this->parameter['MerID'] = $this->encryptInfo['MerID']; $this->parameter['EncryptInfo'] = $this->Encrypt(); $this->parameter['HashInfo'] = $this->HashInfo($this->parameter['EncryptInfo']); + $this->parameter['IsPlatForm'] = $isPlatForm; $this->curlUrl = $this->apiUrl . $type; } /**