|
|
@ -1,5 +1,6 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
namespace Sdk\Controller;
|
|
|
|
namespace Sdk\Controller;
|
|
|
|
|
|
|
|
use Org\WeixinSDK\Weixin;
|
|
|
|
use Think\Controller;
|
|
|
|
use Think\Controller;
|
|
|
|
use Org\Ipa365SDK\Ipa365;
|
|
|
|
use Org\Ipa365SDK\Ipa365;
|
|
|
|
use Mobile\Controller\SsgController;
|
|
|
|
use Mobile\Controller\SsgController;
|
|
|
@ -158,18 +159,21 @@ class Ipa365Controller extends BaseController{
|
|
|
|
$param['payway'] = 1;
|
|
|
|
$param['payway'] = 1;
|
|
|
|
$param['title'] = $price;
|
|
|
|
$param['title'] = $price;
|
|
|
|
$param['body'] = $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['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['notifyurl'] = "https://m.wmtxkj.com/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";
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
|
|
|
|
$this->assign("url", $ret['url']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$weixn = new Weixin();
|
|
|
|
|
|
|
|
$wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign("wxurl", $wx_pay['mweb_url']);
|
|
|
|
$this->assign("price", self::signprice);
|
|
|
|
$this->assign("price", self::signprice);
|
|
|
|
$this->assign("url", $ret['url']);
|
|
|
|
|
|
|
|
$this->assign("order_id", $orderId);
|
|
|
|
$this->assign("order_id", $orderId);
|
|
|
|
|
|
|
|
|
|
|
|
// pp($orderId);
|
|
|
|
|
|
|
|
// redirect($ret['url']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -209,12 +213,19 @@ class Ipa365Controller extends BaseController{
|
|
|
|
$param['payway'] = 1;
|
|
|
|
$param['payway'] = 1;
|
|
|
|
$param['title'] = $price;
|
|
|
|
$param['title'] = $price;
|
|
|
|
$param['body'] = $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['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['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|
|
|
|
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
$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";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
$this->assign("url", $ret['url']);
|
|
|
|
$this->assign("url", $ret['url']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$weixn = new Weixin();
|
|
|
|
|
|
|
|
$wx_pay = json_decode($weixn->weixin_pay('超级签消费', $orderId, $price, 'MWEB', 4), true);
|
|
|
|
|
|
|
|
$this->assign("wxurl", $wx_pay['mweb_url']);
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign("price", $price);
|
|
|
|
$this->assign("price", $price);
|
|
|
|
$this->assign("order_id", $payLog['order_id']);
|
|
|
|
$this->assign("order_id", $payLog['order_id']);
|
|
|
|
$this->assign("game_id", $payLog['game_id']);
|
|
|
|
$this->assign("game_id", $payLog['game_id']);
|
|
|
|