|
|
|
@ -46,7 +46,7 @@ class Ipa365Controller extends BaseController{
|
|
|
|
|
$param['title'] = $price;
|
|
|
|
|
$param['body'] = $price;
|
|
|
|
|
$param['callback'] = "http://www.baidu.com";
|
|
|
|
|
$param['notifyurl'] = "https://api.wmtxkj.com/callback.php/Notify/sq_callback";
|
|
|
|
|
$param['notifyurl'] = "https://api.chengfeng123.cn/callback.php/Notify/sq_callback";
|
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
|
redirect($ret['url']);
|
|
|
|
|
die;
|
|
|
|
@ -129,7 +129,7 @@ class Ipa365Controller extends BaseController{
|
|
|
|
|
$orderId = $payLog['order_id'];
|
|
|
|
|
}elseif ($payLog && $payLog['pay_status']==1){
|
|
|
|
|
$orderId = $payLog['order_id'];
|
|
|
|
|
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'], '.chengfeng123.cn') || $_SERVER['HTTP_HOST']=='127.0.0.1' || stripos($_SERVER['HTTP_HOST'], '.free.idcfengye.com')){
|
|
|
|
|
redirect("http://".$_SERVER['HTTP_HOST']."/sdk.php/Ipa365/install_show/user_id/$userId/game_id/$gameId/order_id/$orderId");
|
|
|
|
|
}else{
|
|
|
|
|
redirect("https://".$_SERVER['HTTP_HOST']."/sdk.php/Ipa365/install_show/user_id/$userId/game_id/$gameId/order_id/$orderId");
|
|
|
|
@ -167,9 +167,7 @@ class Ipa365Controller extends BaseController{
|
|
|
|
|
$param['payway'] = 1;
|
|
|
|
|
$param['title'] = $price;
|
|
|
|
|
$param['body'] = $price;
|
|
|
|
|
//$param['callback'] = "https://m.wmtxkj.com/sdk.php/Ipa365/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')){
|
|
|
|
|
if(stripos($_SERVER['HTTP_HOST'], '.chengfeng123.cn') || $_SERVER['HTTP_HOST']=='127.0.0.1' || stripos($_SERVER['HTTP_HOST'], '.free.idcfengye.com')){
|
|
|
|
|
$param['callback'] = "http://".$_SERVER['HTTP_HOST']."/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
|
|
|
|
|
$param['notifyurl'] = "http://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|
}else{
|
|
|
|
@ -228,8 +226,8 @@ class Ipa365Controller extends BaseController{
|
|
|
|
|
$param['payway'] = 1;
|
|
|
|
|
$param['title'] = $price;
|
|
|
|
|
$param['body'] = $price;
|
|
|
|
|
//$param['callback'] = "https://m.wmtxkj.com/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
|
|
|
|
|
//$param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|
//$param['callback'] = "https://m.dchengfeng123.cn/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
|
|
|
|
|
//$param['notifyurl'] = "https://m.dchengfeng123.cn/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|
|
|
|
|
|
$param['callback'] = "https://".$_SERVER['HTTP_HOST']."/sdk.php/Ipa365/install_show/user_id/{$userId}/game_id/{$gameId}/order_id/{$orderId}";
|
|
|
|
|
$param['notifyurl'] = "https://".$_SERVER['HTTP_HOST']."/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|