This commit is contained in:
aozhiwei 2023-07-14 15:43:16 +08:00
parent 04c01a4659
commit d76f140e1b
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@ namespace services;
require_once('phpcommon/bchelper.php'); require_once('phpcommon/bchelper.php');
require_once ('services/callback/BuyPassCbService.php'); require_once ('services/callback/BuyPassCbService.php');
require_once ('services/callback/BuyShopGoodsCbService.php'); require_once ('services/callback/BuyShopGoodsCbService.php');
require_once ('services/callback/common/SignatureService.php');
use phpcommon\SqlHelper; use phpcommon\SqlHelper;
@ -12,6 +13,7 @@ class GameItemMallBuyOk {
public function process() public function process()
{ {
SignatureService::web3ServiceCheck();
$address = getReqVal('address', ''); $address = getReqVal('address', '');
$orderId = getReqVal('order_id', ''); $orderId = getReqVal('order_id', '');

View File

@ -17,12 +17,12 @@ class SignatureService {
) )
); );
if (!$row) { if (!$row) {
myself()-_rspErr(self::ERRCODE); myself()-_rspErr(self::ERRCODE_SIGN);
die(); die();
} }
$sign = self::normalMd5Sign($_REQUEST, $row['secret_key'], array('_sign')); $sign = self::normalMd5Sign($_REQUEST, $row['secret_key'], array('_sign'));
if ($sign != $row['signature']) { if ($sign != $row['signature']) {
myself()-_rspErr(self::ERRCODE); myself()-_rspErr(self::ERRCODE_SIGN);
die(); die();
} }
} }