Browse Source

推送工行

lizhen 3 weeks ago
parent
commit
624a5a37a3
2 changed files with 6 additions and 2 deletions
  1. 2 2
      application/api/controller/Jiashicang.php
  2. 4 0
      extend/icbc/WebUtils.php

+ 2 - 2
application/api/controller/Jiashicang.php

@@ -173,12 +173,12 @@ class Jiashicang extends Api
             'format' => 'json',
             'format' => 'json',
             'charset' => 'UTF-8',
             'charset' => 'UTF-8',
             'encrypt_type'=> 'AES',
             'encrypt_type'=> 'AES',
-            'sign_type' => 'RSA',
+            'sign_type' => 'RSA2',
         ];
         ];
 
 
         $client = new \DefaultIcbcClient($data['app_id'],$private_key,$data['sign_type'],$data['charset'],$data['format'],$public_key,'','','','');
         $client = new \DefaultIcbcClient($data['app_id'],$private_key,$data['sign_type'],$data['charset'],$data['format'],$public_key,'','','','');
         $request = [
         $request = [
-            'serviceUrl' => 'https://122.238.8.99:8082/api/mybank/farm/farmplatf/syncCommunityData',
+            'serviceUrl' => 'https://122.238.8.99:8082/api/mybank/farm/farmplatf/syncCommunityData/V1',
             'serviceUrl' => 'https://gw.dccnet.com.cn:8082/api/mybank/farm/farmplatf/syncCommunityData/V1',
             'serviceUrl' => 'https://gw.dccnet.com.cn:8082/api/mybank/farm/farmplatf/syncCommunityData/V1',
             'method' => 'POST',
             'method' => 'POST',
             'isNeedEncrypt' => false,
             'isNeedEncrypt' => false,

+ 4 - 0
extend/icbc/WebUtils.php

@@ -31,6 +31,10 @@ include_once 'IcbcConstants.php';
 	   }
 	   }
 
 
 	   	public static function doPost($url, $params, $charset){
 	   	public static function doPost($url, $params, $charset){
+           dump($url);
+           dump($params);
+           dump($charset);
+
 			$headers = array();
 			$headers = array();
 			$headers[] = 'Expect:';
 			$headers[] = 'Expect:';
 			$headers[IcbcConstants::$VERSION_HEADER_NAME] = self::$version;
 			$headers[IcbcConstants::$VERSION_HEADER_NAME] = self::$version;