hrjy 1 год назад
Родитель
Сommit
80ac5ae778
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      crmeb/services/GmService.php

+ 0 - 8
crmeb/services/GmService.php

@@ -79,8 +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(1112123123);
-        exit;
         //拼接参数数组
         $data = [
             'appID' => self::$appID,
@@ -257,15 +255,9 @@ class GmService
     {
         //签名
         $recode = php_SM2Sign($data, $redata, $privkey, $pubkey);
-        echo "<br/>recode:$recode \n";
-
         //php_SM2Sign接口返回的签名值是RS格式,以下示例转DER编码
         $php_func = 'php_SM2FormatConvert';
         $recode = $php_func(202, $redata, $der);
-        echo "<br/>recode:$recode \n";
-        echo "<br/>data: " . $data . " len:" . strlen($data) . " \n";
-        echo "<br/>signValue DER: " . base64_encode($der) . " len:" . strlen($der) . " \n";
-
         //加签数据base64返回
         $sm2SignData = base64_encode($der);
         return $sm2SignData;