1
This commit is contained in:
parent
04c01a4659
commit
d76f140e1b
@ -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', '');
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user