|
@@ -43,9 +43,6 @@ class GmService
|
|
|
// 初始化加密扩展
|
|
|
// echo "--------php_crypto_init 初始化开始--------\n";
|
|
|
$path = "/www/server/php/73/libcryptAPIsm_lnx64.so";
|
|
|
- if (file_exists($path))
|
|
|
- dump(file_get_contents($path));
|
|
|
- exit;
|
|
|
php_crypto_init($path);
|
|
|
// echo "--------php_crypto_init 初始化结束-------\n";
|
|
|
}
|
|
@@ -78,6 +75,8 @@ class GmService
|
|
|
|
|
|
// echo self::string2hex(base64_decode(self::PUBLIC_KEY));
|
|
|
|
|
|
+ dump(function_exists('php_HextoAsc'));
|
|
|
+ exit;
|
|
|
|
|
|
//初始化转换密钥信息
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::PRIVATE_KEY)), $k1);
|