ssg回调测试结束

master
chenzhi 5 years ago
parent 02e5dcdd21
commit fb0170048f

@ -16,7 +16,6 @@ class Notify2Controller extends BaseController
*/ */
public function notify() public function notify()
{ {
Log::write("回来了", Log::DEBUG);
C(api('Config/lists')); C(api('Config/lists'));
$apitype = I('get.apitype');#获取支付api类型 $apitype = I('get.apitype');#获取支付api类型
@ -33,7 +32,6 @@ class Notify2Controller extends BaseController
exit('Access Denied'); exit('Access Denied');
} }
} }
Log::write(serialize($notify), Log::DEBUG);
$pay_way = $apitype; $pay_way = $apitype;
if ($apitype == "swiftpass") { if ($apitype == "swiftpass") {
$apitype = "weixin"; $apitype = "weixin";

@ -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['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";
} }
Log::write(serialize($param), Log::DEBUG);
$ali_pay = $this->alipay($param); $ali_pay = $this->alipay($param);
redirect($ali_pay['url']); redirect($ali_pay['url']);
}else{ }else{

@ -169,10 +169,8 @@ class Pay
} }
$notifyurl = $vo->getNotifyUrl(); $notifyurl = $vo->getNotifyUrl();
if (!$notifyurl){ if (!$notifyurl){
// $notifyurl = 'http://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify'; $notifyurl = 'https://' . $_SERVER ['HTTP_HOST'] . '/callback.php/Notify2/notify/apitype/alipay/methodtype/notify';
$notifyurl = 'https://m.wmtxkj.com/callback.php/Notify2/notify/apitype/alipay/methodtype/notify';
} }
Log::write($notifyurl, Log::DEBUG);
$request->setNotifyUrl($notifyurl); $request->setNotifyUrl($notifyurl);
switch ($type) { switch ($type) {

Loading…
Cancel
Save