From 90253ddcf6ea65977a5b722a849324be78837360 Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Wed, 20 Nov 2019 17:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Callback/Controller/Notify2Controller.class.php | 12 +++++++++--- .../Mobile/Controller/SsgController.class.php | 7 ++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index 2c7e99c0b..98622c09c 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -64,9 +64,15 @@ class Notify2Controller extends BaseController case 'TB': $result = $this->set_balance($order_info); break; - case 'SI': - $result = $this->set_order($order_info); - break; + case 'SI': + $result = $this->set_order($order_info); + break; + case 'SS': // 超级签 + $this->supersign_pay_notify(array( + 'trade_id' => $order_info['trade_no'], + 'order_id' => $order_info['out_trade_no'] + )); + break; default: exit('accident order data'); break; diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index ffaa3534a..5e255cc05 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -550,12 +550,13 @@ class SsgController extends BaseController { $param['body'] = $price; //$param['callback'] = "https://m.wmtxkj.com/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; //$param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay"; + if(stripos($_SERVER['HTTP_HOST'], '.wmtxkj.cn') || $_SERVER['HTTP_HOST']=='127.0.0.1' || stripos($_SERVER['HTTP_HOST'], '.free.idcfengye.com')){ $param['callback'] = "http://".$_SERVER['HTTP_HOST']."/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; - $param['notifyurl'] = "http://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay"; + // $param['notifyurl'] = "http://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay"; }else{ $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"; + // $param['notifyurl'] = "https://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay"; } $ali_pay = $this->alipay($param); @@ -587,7 +588,7 @@ class SsgController extends BaseController { ->setTable("supersign") ->setPayWay($param['payway']) ->setCallback($param['callback']) - ->setNotifyUrl($param['notifyurl']) + // ->setNotifyUrl($param['notifyurl']) ->setGameName(get_game_name($param['game_id'])) ->setServerId(0) ->setUserId($param['user_id'])