From fb0170048f1857d5abeade500dc7407db2c93551 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Thu, 28 Nov 2019 09:00:39 +0800 Subject: [PATCH] =?UTF-8?q?ssg=E5=9B=9E=E8=B0=83=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Callback/Controller/Notify2Controller.class.php | 2 -- Application/Mobile/Controller/SsgController.class.php | 1 - ThinkPHP/Library/Think/Pay.class.php | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index ed0d45291..4e196c26c 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -16,7 +16,6 @@ class Notify2Controller extends BaseController */ public function notify() { - Log::write("回来了", Log::DEBUG); C(api('Config/lists')); $apitype = I('get.apitype');#获取支付api类型 @@ -33,7 +32,6 @@ class Notify2Controller extends BaseController exit('Access Denied'); } } - Log::write(serialize($notify), Log::DEBUG); $pay_way = $apitype; if ($apitype == "swiftpass") { $apitype = "weixin"; diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 8684daf05..86cec8911 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -592,7 +592,6 @@ class SsgController extends BaseController { $param['callback'] = "https://".$_SERVER['HTTP_HOST']."/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; //$param['notifyurl'] = "https://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay"; } - Log::write(serialize($param), Log::DEBUG); $ali_pay = $this->alipay($param); redirect($ali_pay['url']); }else{ diff --git a/ThinkPHP/Library/Think/Pay.class.php b/ThinkPHP/Library/Think/Pay.class.php index 02340de61..972efffd6 100644 --- a/ThinkPHP/Library/Think/Pay.class.php +++ b/ThinkPHP/Library/Think/Pay.class.php @@ -169,10 +169,8 @@ class Pay } $notifyurl = $vo->getNotifyUrl(); if (!$notifyurl){ - // $notifyurl = 'http://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify'; - $notifyurl = 'https://m.wmtxkj.com/callback.php/Notify2/notify/apitype/alipay/methodtype/notify'; + $notifyurl = 'https://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify'; } - Log::write($notifyurl, Log::DEBUG); $request->setNotifyUrl($notifyurl); switch ($type) {