Ver Fonte

finance sandpay

zz há 4 anos atrás
pai
commit
f76bee4f3d
1 ficheiros alterados com 7 adições e 6 exclusões
  1. 7 6
      app/Libs/Pay/SandPay.php

+ 7 - 6
app/Libs/Pay/SandPay.php

@@ -9,15 +9,16 @@ class SandPay
 {
     const API_HOST = 'https://caspay.sandpay.com.cn/agent-main/openapi/';
     const API_TEST_HOST = 'http://61.129.71.103:7970/agent-main/openapi/';
-    const PUB_KEY_PATH = 'cert/sandpay/sand.cer'; //公钥文件
-    const PRI_KEY_PATH = 'cert/sandpay/vPvWnHjBeQhHLebn.pfx'; //私钥文件
-    const CERT_PWD = 'vPvWnHjBeQhHLebn'; //私钥证书密码
-    const MER_ID = '6888804025954';
-    const NOTIFY_HOST = 'http://116.62.175.234/';
+    const NOTIFY_HOST = 'http://116.62.175.234:8094/';
     const NOTIFY_TEST_HOST = 'http://managepre.aizhuishu.com/';
     const PUB_PRODUCT_ID = '00000003'; //代付对公:00000003
     const PRI_PRODUCT_ID = '00000004'; //代付对私:00000004
 
+    const PUB_KEY_PATH = 'cert/sandpay-finance/sand.cer'; //公钥文件
+    const PRI_KEY_PATH = 'cert/sandpay-finance/vPvWnHjBeQhHLebn.pfx'; //私钥文件
+    const CERT_PWD = 'vPvWnHjBeQhHLebn'; //私钥证书密码
+    const MER_ID = '6888804025954';
+
     private $notify_url;
     private $agentpay_url;
     private $query_balance_url;
@@ -282,7 +283,7 @@ class SandPay
             $file = file_get_contents($path);
             if (!$file) {
                 throw new Exception('loadPk12Cert::file
-					_get_contents');
+                    _get_contents');
             }
 
             if (!openssl_pkcs12_read($file, $cert, $pwd)) {