|
|
@ -150,8 +150,8 @@ 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://api.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://api.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
$param['notifyurl'] = "https://m.wmtxkj.com/callback.php/Notify/notify/apitype/alipay";
|
|
|
|
|
|
|
|
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
$ret = $this->alipay($param);
|
|
|
|
|
|
|
|
|
|
|
@ -214,8 +214,13 @@ class Ipa365Controller extends BaseController{
|
|
|
|
public function install_show() {
|
|
|
|
public function install_show() {
|
|
|
|
$orderId = I('order_id', 0);
|
|
|
|
$orderId = I('order_id', 0);
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
|
|
|
$userId = I('user_id', 0);
|
|
|
|
|
|
|
|
|
|
|
|
$userId = $_SESSION['user_id'];
|
|
|
|
$user = M('user', 'tab_')->where(array(
|
|
|
|
|
|
|
|
'id' => $userId
|
|
|
|
|
|
|
|
))->find();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $userId = $_SESSION['user_id'];
|
|
|
|
if (!$userId ) {
|
|
|
|
if (!$userId ) {
|
|
|
|
$this->error("请登入", "/mobile.php/ssg/login");
|
|
|
|
$this->error("请登入", "/mobile.php/ssg/login");
|
|
|
|
}
|
|
|
|
}
|
|
|
|