This commit is contained in:
aozhiwei 2023-07-14 16:38:32 +08:00
parent d68d106699
commit 941c343180

View File

@ -17,11 +17,13 @@ class SignatureService {
)
);
if (!$row) {
error_log('error sign1:' . json_encode($_REQUEST));
myself()-_rspErr(self::ERRCODE_SIGN_ERROR, 'not found cb info');
die();
}
$sign = self::normalMd5Sign($_REQUEST, $row['secret_key'], array('_sign'));
if ($sign != $row['signature']) {
error_log('error sign2:' . json_encode($_REQUEST));
myself()-_rspErr(self::ERRCODE_SIGN_ERROR, 'sign error');
die();
}