From fd6318dc164c79043f99a2899dc6917a86fef690 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Fri, 15 Nov 2024 11:48:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E8=B4=A6=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Gt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Gt.php b/app/api/controller/Gt.php index af2ae87d..2e8e00fc 100644 --- a/app/api/controller/Gt.php +++ b/app/api/controller/Gt.php @@ -26,7 +26,7 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRUsPpbQPhBWrxFhG00k9VBgnHc7dCZyTQYI ]; $d =$this->ASCII($data); var_dump($d); - $sha256 = hash('sha256', $d); + $sha256 = bin2hex(hash('sha256', $d)); var_dump($sha256); openssl_public_encrypt($sha256,$msg,$publicKey); $data['sign'] = base64_encode($msg);