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;