diff --git a/extend/payment/PayEase.php b/extend/payment/PayEase.php index 0eab8a00bcb3fa30474ec80ce5c7d48832a90799..e70b2292ac87f4528807d936431b2a45a72932a4 100644 --- a/extend/payment/PayEase.php +++ b/extend/payment/PayEase.php @@ -664,8 +664,8 @@ class PayEase */ function hmacSign($encrypt_str,$path){ - if (empty($encrypt_str['hmac'])){ - return $encrypt_str; + if (empty($encrypt_str['hmac'])) { + return DataReturn($encrypt_str['cause'].'['.$encrypt_str['code'].']', -1); } $hmac = $encrypt_str['hmac']; unset($encrypt_str['hmac']);