hrjy hace 2 años
padre
commit
4381b3f059
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      crmeb/services/GmService.php

+ 2 - 2
crmeb/services/GmService.php

@@ -228,10 +228,10 @@ class GmService
     //SM2Encrypt
     public static function SM2Encrypt($data, $pubkey)
     {
-        dump($data);
-        exit;
         //sm2加密
         php_SM2Encrypt($data, $cipher, $pubkey);
+        dump($cipher);
+        exit;
         //php_SM2Encrypt接口返回的密文值是c1c3c2格式,以下示例转DER编码
         php_SM2FormatConvert(102, $cipher, $der);
         //SM2加密字符串转base64编码