|
@@ -79,8 +79,8 @@ class GmService
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::PRIVATE_KEY)), $k1);
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::PUBLIC_KEY)), $k2);
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::CGB_PUBLIC_KEY)), $gf_k);
|
|
|
- dump(12131243123212341);
|
|
|
- exit;
|
|
|
+// dump(12131243123212341);
|
|
|
+// exit;
|
|
|
// //拼接参数数组
|
|
|
$data = [
|
|
|
'appID' => self::$appID,
|
|
@@ -90,6 +90,7 @@ class GmService
|
|
|
'sm2Sign' => self::SM2Sign($key, $k2, $k1), //sm2加密key
|
|
|
];
|
|
|
dump($data);
|
|
|
+ exit;
|
|
|
//拼接签名参数,md5转大写
|
|
|
$data['sign'] = self::SM3Crypt($data['random'] . $data['seqNO'] . self::$appSecretKey . $key);
|
|
|
|