From a687b005d5225492a164b4049bcb87ff1f32921a Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 18 Dec 2020 10:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=94=AF=E4=BB=98=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WePayV3/Contracts/BasicWePay.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 66b9487..80d4d17 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -222,7 +222,8 @@ abstract class BasicWePay */ public function notify() { - $data = $_POST; + $body = file_get_contents('php://input'); + $data = json_decode($body, true); if (isset($data['resource'])) { $aes = new DecryptAes($this->config['mch_v3_key']); $data['result'] = $aes->decryptToString(