From 5a0e6fa15b484163feddc5e91a9a6c096ebe85f6 Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 16 Jul 2023 15:44:42 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 7c717980..76c67ccb 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -347,6 +347,8 @@ class ShopController extends BaseAuthedController $signature = hash_hmac('sha256', $hash_data, BUY_SERVER_PKEY); + error_log("buyGoodsDirect-------" . $signature . "---" . $sign . "---" . json_encode($data)); + if ($signature != $sign) { $this->_rspErr(1, "signature error, signature: {$signature}, sign: {$sign}"); return;