This commit is contained in:
aozhiwei 2023-07-14 15:47:19 +08:00
parent dc7946c7ff
commit 04b228b061

View File

@ -4,7 +4,7 @@ namespace services;
class SignatureService { class SignatureService {
const ERRCODE_SIGN = 2001; const ERRCODE_SIGN_ERROR = 2001;
public static function web3ServiceCheck() public static function web3ServiceCheck()
{ {
@ -17,12 +17,12 @@ class SignatureService {
) )
); );
if (!$row) { if (!$row) {
myself()-_rspErr(self::ERRCODE_SIGN); myself()-_rspErr(self::ERRCODE_SIGN_ERROR, 'not found cb info');
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_SIGN); myself()-_rspErr(self::ERRCODE_SIGN_ERROR, 'sign error');
die(); die();
} }
} }