|
@@ -79,11 +79,6 @@ class GmService
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::PUBLIC_KEY)), $k2);
|
|
|
php_HextoAsc(self::string2hex(base64_decode(self::CGB_PUBLIC_KEY)), $gf_k);
|
|
|
|
|
|
- dump($k1);
|
|
|
- dump($k2);
|
|
|
- dump($gf_k);
|
|
|
- exit;
|
|
|
-
|
|
|
//拼接参数数组
|
|
|
$data = [
|
|
|
'appID' => self::$appID,
|
|
@@ -96,6 +91,8 @@ class GmService
|
|
|
//拼接签名参数,md5转大写
|
|
|
$data['sign'] = self::SM3Crypt($data['random'] . $data['seqNO'] . self::$appSecretKey . $key);
|
|
|
|
|
|
+ dump($data);
|
|
|
+ exit;
|
|
|
//发送post接口请求
|
|
|
$res = self::https_post(self::$tokenUrl, $data);
|
|
|
|