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