ssg回调测试结束

master
chenzhi 5 years ago
parent 02e5dcdd21
commit fb0170048f

@ -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";

@ -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{

@ -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) {

Loading…
Cancel
Save