wangyong dde2f72f47 项目新增 5 years ago
..
utf8 dde2f72f47 项目新增 5 years ago
ReadMe.txt dde2f72f47 项目新增 5 years ago

ReadMe.txt


qr
ȫ֧˵
ts
ӿƣȫ֧ͳһӿ
汾1.1
ԣPHP
Ȩȫ
ߣȫ
ϵʽ




ļṹ



gbk.funcļ

encryptParams.php Կţcvn2룬cvn2Чڴ

PinBlock.php

httpClient.php̨ͨŴ

SDKConfig.php Ϣ

PublicEncrypte.php /ǩ

common.php ķ

secureUtil.phpǩ/ǩ

log.class.php ־ӡ





ע

openssl֤ʹ еphp_openssl.dll,ssleay32.dll,libeay32.dll3ļwindows/system32/ļ£Apache



Ҫļ˵


--------------------------------------------------------------------


SDKConfig.php

ǩ֤·
const SDK_SIGN_CERT_PATH = '';

ǩ֤
const SDK_SIGN_CERT_PWD = '';

ǩ֤
const SDK_VERIFY_CERT_PATH = '';

֤
const SDK_ENCRYPT_CERT_PATH = '';

ǩ֤·
const SDK_VERIFY_CERT_DIR = '';

ǰַ̨
const SDK_FRONT_TRANS_URL = '';

̨ؽַ
const SDK_BACK_TRANS_URL = '';


const SDK_BATCH_TRANS_URL = '';

״̬ѯ
const SDK_BATCH_QUERY_URL = '';


ʲѯַ
const SDK_SINGLE_QUERY_URL = '';

ļַ
const SDK_FILE_QUERY_URL = '';

ǰַ̨֪ͨ
const SDK_FRONT_NOTIFY_URL = '';

ַ̨֪ͨ
const SDK_BACK_NOTIFY_URL = '';

ļĿ¼
const SDK_FILE_DOWN_PATH = '';

־ Ŀ¼
const SDK_LOG_FILE_PATH = '';

־
const SDK_LOG_LEVEL = '';

п׵ַ
const SDK_Card_Request_Url = '';

App׵ַ
const SDK_App_Request_Url = '';



common.php

function coverParamsToString($param)
ܣ תΪ崮


function coverStringToArray($val )
ܣַתΪ

function deal_params(&$params)
ܣر ͻϢ , ΪGBK תΪutf-8


function deflate_file(&$params)
ܣѹļ

function deal_file($params)
ܣļ

function create_html($params, $action)
ܣԶύ





HttpClient.php


function sendHttpRequest($params, $url)
ܣģԶHTTPPOSTʽ첢ȡĴ


function getRequestParamString($params)
ܣװ




encryptParams.php

function encrypt_params(&$params)
ܣԿ | cvn2 | | cvn2Чڽд




PinBlock.php
function Pin2PinBlock( &$sPin )
ܣתpin ֤ת





PublicEncrypte.php

function EncryptedPin$sPin, $sCardNo ,$sPubKeyURL

ܣ֤Id֤뷽




secureUtil.php

function sign(&$params)

ܣǩ

function verify($params)

ܣǩ

function getPulbicKeyByCertId($certId)

ܣ֤ID֤鷽

function getCertId($cert_path)

ܣȡ֤ID

function getCertIdByCerPath($cert_path)

ܣȡ֤ͷ

function getPublicKey($cert_path)

ܣȡ֤鹫Կ -ǩ

function getPrivateKey($cert_path)

ܣ(ǩ)֤˽Կ

function encryptPan($pan)

ܣܿŷ

function encryptPin($pan, $pwd)

ܣpinܷ

function encryptCvn2($cvn2)

ܣcvn2ܷ

function encryptDate($certDate)

ܣЧڼܷ