Explorar el Código

二合一支付sdk

15954078560 hace 1 año
padre
commit
92d9fc1d1e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      application/api/controller/Pay.php

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

@@ -577,7 +577,7 @@ class Pay extends Api
 //        $sign_bytes = strtolower($this->base16_encode(md5($data)));
 //        $sign_bytes = strtoupper($this->base16_encode($sign_bytes));
 
-        $sign_bytes = '/3.0/hop/svc/pay/toPay.ajax' . $this->base16_encode(md5($data));
+        $sign_bytes = $this->base16_encode(md5($data));
         $hdc_token = hash_hmac('sha256', $sign_bytes, config('pay_appkey'), false);
 //        $hdc_token = strtolower($this->base16_encode($hdc_token));
 
@@ -594,6 +594,7 @@ class Pay extends Api
         $return_data['host'] = config('pay_ip');
         $return_data['appid'] = config('pay_appid');
         $return_data['token'] = $hdc_token;
+        $return_data['apptoken'] = config('pay_appkey');
 
         /*$rs = httpRequest($url, 'POST', $data, $header);
         if (!$rs) {