From 222b9d2ec6ed4eff5a6f7bcdf6c617224136bf35 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 20 Nov 2019 20:10:47 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=9E0.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Callback/Controller/Notify2Controller.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index 946da9702..155c1a8ee 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -31,7 +31,6 @@ class Notify2Controller extends BaseController exit('Access Denied'); } } - Log::write($notify, Log::DEBUG); $pay_way = $apitype; if ($apitype == "swiftpass") { $apitype = "weixin"; @@ -39,10 +38,8 @@ class Notify2Controller extends BaseController Vendor('Alipay.AopSdk'); $aop = new \AopClient(); $aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"); - $result2 = $aop->getSignContent($notify); - - Log::write(json_encode($result2),Log::DEBUG); $result = $aop->rsaCheckV1($notify,"",'RSA2'); + Log::write(json_encode($notify),Log::DEBUG); Log::write(json_encode($result),Log::DEBUG); if ($result) { //获取回调订单信息 From 48be6af89b3cb39190f5cf5208c0032b7ebd72c1 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 20 Nov 2019 20:17:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9B=9E=E6=8E=890.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Callback/Controller/Notify2Controller.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index 155c1a8ee..fb34ddcad 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -40,6 +40,7 @@ class Notify2Controller extends BaseController $aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"); $result = $aop->rsaCheckV1($notify,"",'RSA2'); Log::write(json_encode($notify),Log::DEBUG); + Log::write(file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"),Log::DEBUG); Log::write(json_encode($result),Log::DEBUG); if ($result) { //获取回调订单信息 From 4ecbec2f49ab7d6c0005482721a92e0a39e0c667 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 20 Nov 2019 20:23:22 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=9B=9E=E6=8E=891.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/SecretKey/alipay/alipay2_public_key.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Sdk/SecretKey/alipay/alipay2_public_key.txt b/Application/Sdk/SecretKey/alipay/alipay2_public_key.txt index a42b82f02..d96023b85 100644 --- a/Application/Sdk/SecretKey/alipay/alipay2_public_key.txt +++ b/Application/Sdk/SecretKey/alipay/alipay2_public_key.txt @@ -1 +1 @@ -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1xgiAwoD6s2UuB/eWyc1cA1vPxtTBYV2fkyBGWpSd8FHzDDzDE7aiKZ1jwOYTsLultNjG7lpJUQqnXX8B8N/uQsW2LVntM7Ry0NMRtYrQnfkaCucTUyjlHSpn+JlOwMzCWF78+b4UuHarmJgc6yqtljL/Sj0wmA8hGxyam37zAPGNKbCZg1xgbO5zSON3zt9+RXfvkSjQlRzZz2LcuWklaa617DvZWxGP6a43hukqbXA1zOwnA3nCm049u0cyrlh9BM/kudRoJqOblu+Qgr4+CKq4FkYDae3EGACqU1xmamQGFVf1fCz55dn8a5E9K0G/PzPbCsAsh4dr9iGc7gzsQIDAQAB \ No newline at end of file +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAj1gR40ZrH2ZoHTmKAhiEcPEsc0vM7Wbeui8SBrjntEVjHCLF4mE9u9V7uYyrs0b/RGlh5Lxqe3AuterzAWOHGTckg2GOXXRagYYekpTl77fTLmm99vI+uTA7mjvs0PLm39/MjuK5hIr39eQgctXM+m4oxSht5hIGahyC9nk5uId0b1oae+tAtT7mBl/9N9rcsDuoNlX447IjDsi/WxKMsI6C2rI+b6p2BBG46550s/9mwrCpWHHeu7jOx9gS8501axUd4cjqOLRlxPuEO4Il6ZCnsI2U91/G4tKgjgXkNdTGXqP+vqvm7MzpYL3SMmqyboEJdKa3vDbQAcfThSPrQwIDAQAB \ No newline at end of file