Ver Fonte

二合一支付sdk

15954078560 há 2 anos atrás
pai
commit
e1ca07e0b3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      application/api/controller/Pay.php

+ 1 - 1
application/api/controller/Pay.php

@@ -578,7 +578,7 @@ class Pay extends Api
 //        $sign_bytes = strtoupper($this->base16_encode($sign_bytes));
 
         $sign_bytes = $this->base16_encode(md5($data));
-        $hdc_token = hash_hmac('sha256', $sign_bytes, base64_decode(config('pay_appkey')), false);
+        $hdc_token = hash_hmac('sha256', $sign_bytes, config('pay_appkey'), false);
 //        $hdc_token = strtolower($this->base16_encode($hdc_token));
 
         $header = [