|
|
@ -601,6 +601,7 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
|
|
|
|
|
|
|
|
C(api('Config/lists'));
|
|
|
|
C(api('Config/lists'));
|
|
|
|
$request['price'] = I('request.price');
|
|
|
|
$request['price'] = I('request.price');
|
|
|
|
|
|
|
|
$game_id = I('request.game_id');
|
|
|
|
if($request['price']*1<=0 || $request['price'] > C('WX_PAY_LIMIT')) {
|
|
|
|
if($request['price']*1<=0 || $request['price'] > C('WX_PAY_LIMIT')) {
|
|
|
|
// $this->set_message(0,"fail","充值金额有误");
|
|
|
|
// $this->set_message(0,"fail","充值金额有误");
|
|
|
|
redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误', 'user_token' => $this->userToken)));exit;
|
|
|
|
redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误', 'user_token' => $this->userToken)));exit;
|
|
|
@ -624,7 +625,7 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
// .(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
// .(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
if (I('request.api_ver') == 1) {
|
|
|
|
if (I('request.api_ver') == 1) {
|
|
|
|
$json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$request['game_id'] ;
|
|
|
|
$json_data['url'] = $is_pay['mweb_url'].'&redirect_url='.(is_ssl()?'https%3A%2F%2F':'http%3A%2F%2F'). $_SERVER ['HTTP_HOST'] . "%2Fsdk.php%2FSpend%2Fpay_success%2Forderno%2F".$request['pay_order_number'].'%2Fgame_id%2F'.$game_id;
|
|
|
|
redirect($json_data['url']);
|
|
|
|
redirect($json_data['url']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|