From e986b5de58752ff21d77b91f18f7af46b450157f Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 20 Nov 2019 18:21:13 +0800 Subject: [PATCH] 123 --- Application/Callback/Controller/Notify2Controller.class.php | 5 +++-- Application/Mobile/Controller/SsgController.class.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index 887e17afc..d9ae2d8ea 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -31,7 +31,7 @@ class Notify2Controller extends BaseController exit('Access Denied'); } } - Log::write(serialize($notify), Log::DEBUG); + Log::write($notify, Log::DEBUG); $pay_way = $apitype; if ($apitype == "swiftpass") { $apitype = "weixin"; @@ -39,7 +39,8 @@ class Notify2Controller extends BaseController Vendor('Alipay.AopSdk'); $aop = new \AopClient(); $aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"); - $result = $aop->rsaCheckV1($notify,'','RSA2'); + Log::write($aop, Log::DEBUG); + $result = $aop->rsaCheckV2($notify,'','RSA2'); Log::write(serialize($result), Log::DEBUG); if ($result) { //获取回调订单信息 diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 5e255cc05..0a085c73e 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -19,7 +19,7 @@ class SsgController extends BaseController { const CODE_ERROR = -97; //验证码错误 const RETURN_SUCCESS = 1; const RETURN_FALSE = 2; - const signprice = 0.1; //充值金额 + const signprice = 0.01; //充值金额 public function login()