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

View File

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