hrjy 2 년 전
부모
커밋
ec86675a2e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      crmeb/services/GmService.php

+ 2 - 2
crmeb/services/GmService.php

@@ -76,7 +76,7 @@ class GmService
 
         //初始化转换密钥信息
         php_HextoAsc(self::string2hex(base64_decode(self::PRIVATE_KEY)), $k1);
-        halt(compact('k1');
+        halt(compact('k1'));
         php_HextoAsc(self::string2hex(base64_decode(self::PUBLIC_KEY)), $k2);
         halt(compact('k1', 'k2'));
         php_HextoAsc(self::string2hex(base64_decode(self::CGB_PUBLIC_KEY)), $gf_k);
@@ -85,7 +85,7 @@ class GmService
         $data = [
             'appID' => self::$appID,
             'seqNO' => $seqNO,
-            'random' => strtoupper(md5($seqNO)),
+            'random' => strtoupper(md5($seqNO)),K
             'sm2EncryptData' => self::SM2Encrypt($key, $gf_k), //sm2加密key
             'sm2Sign' => self::SM2Sign($key, $k2, $k1), //sm2加密key
         ];