Browse Source

调试支付

15954078560 2 years ago
parent
commit
2e4c302e32
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/api/controller/Pay.php

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

@@ -46,7 +46,7 @@ class Pay extends Api
             $this->error('网络延迟,请稍后再试');
         }
 
-        $url = 'http://183.207.215.112:8090/HDC/3.0/hop/svc/pay/toPay.ajax';
+        $url = 'http://10.12.5.61:8070/HDC/3.0/hop/svc/pay/toPay.ajax';
         $data = [
             'transId' => $rechar_order['order_no'],
             'orderNo' => $rechar_order['order_no'],
@@ -80,9 +80,9 @@ class Pay extends Api
         $sign_bytes = '/3.0/hop/svc/pay/toPay.ajax' . $this->base16_encode(md5($data));
         $hdc_token = base64_encode(hash_hmac('sha256', $sign_bytes, config('pay_appkey'), true));
         $header = [
-            'Host:112.4.10.122:8090',
+            'Host:10.12.5.61:8070',
             'HDC-Service:2',
-            'HDC-APPID:00001',
+            'HDC-APPID:' . config('pay_appid'),
             'HDC-Token:' . $hdc_token,
             'Content-Type:application/json'
         ];