优化回调

master
chenzhi 5 years ago
parent 995ea3f9a5
commit 90253ddcf6

@ -64,9 +64,15 @@ class Notify2Controller extends BaseController
case 'TB': case 'TB':
$result = $this->set_balance($order_info); $result = $this->set_balance($order_info);
break; break;
case 'SI': case 'SI':
$result = $this->set_order($order_info); $result = $this->set_order($order_info);
break; break;
case 'SS': // 超级签
$this->supersign_pay_notify(array(
'trade_id' => $order_info['trade_no'],
'order_id' => $order_info['out_trade_no']
));
break;
default: default:
exit('accident order data'); exit('accident order data');
break; break;

@ -550,12 +550,13 @@ class SsgController extends BaseController {
$param['body'] = $price; $param['body'] = $price;
//$param['callback'] = "https://m.wmtxkj.com/mobile.php/Ssg/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}"; //$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"; //$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')){ 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['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{ }else{
$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";
} }
$ali_pay = $this->alipay($param); $ali_pay = $this->alipay($param);
@ -587,7 +588,7 @@ class SsgController extends BaseController {
->setTable("supersign") ->setTable("supersign")
->setPayWay($param['payway']) ->setPayWay($param['payway'])
->setCallback($param['callback']) ->setCallback($param['callback'])
->setNotifyUrl($param['notifyurl']) // ->setNotifyUrl($param['notifyurl'])
->setGameName(get_game_name($param['game_id'])) ->setGameName(get_game_name($param['game_id']))
->setServerId(0) ->setServerId(0)
->setUserId($param['user_id']) ->setUserId($param['user_id'])

Loading…
Cancel
Save