|
|
|
@ -78,6 +78,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$pay_conf['id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_way'] = self::ALI_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
|
|
|
|
|
if ($pay_info['channel'] == 1) { // 支付宝官方
|
|
|
|
|
|
|
|
|
@ -112,6 +113,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$request['id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_way'] = 1;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
$this->add_deposit($request, 1);
|
|
|
|
|
|
|
|
|
|
$sqpay=new Sqpay();
|
|
|
|
@ -371,6 +373,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$pay_conf['id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_way'] = self::ALI_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
if ($pay_info['channel'] == 1) { // 支付宝官方
|
|
|
|
|
// $game_set_data = get_game_set_info($request['game_id']);
|
|
|
|
|
$request['apitype'] = "alipay";
|
|
|
|
@ -402,6 +405,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$request['spend_ip'] = get_client_ip();
|
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_way'] = 1;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
|
|
|
|
|
if($request['code']==1){
|
|
|
|
|
$ordercheck = M("spend","tab_")->where(array('pay_order_number'=>$request["pay_order_number"]))->find();
|
|
|
|
@ -459,6 +463,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$request['spend_ip'] = get_client_ip();
|
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_way'] = 1;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
|
|
|
|
|
$ordercheck = M("spend","tab_")->where(array('pay_order_number'=>$request["pay_order_number"]))->find();
|
|
|
|
|
if ($ordercheck) {
|
|
|
|
@ -742,6 +747,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$pay_conf['id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_way'] = self::WX_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
|
|
|
|
|
//0 官方 1威富通 2俊付通
|
|
|
|
|
// if (get_wx_pay_type() == 0) {
|
|
|
|
@ -754,6 +760,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$request['pay_url'] = $json_data['url']."&tx_client=hideopen";
|
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
$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'] ;
|
|
|
|
|
/* if (I('request.api_ver') == 1) {
|
|
|
|
@ -1462,6 +1469,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$pay_conf['id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$pay_conf['merchant_way'] = self::WX_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
|
|
|
|
|
//0 官方 1威富通 2俊付通
|
|
|
|
|
// if (get_wx_pay_type() == 0) {
|
|
|
|
@ -1476,6 +1484,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$request['pay_url'] = $json_data['url'] . "&tx_client=hideopen";
|
|
|
|
|
$request['merchant_id'] = $pay_info['id'];
|
|
|
|
|
$request['merchant_way'] = self::WX_PAY;
|
|
|
|
|
$pay_conf['main_id'] = $pay_info['main_id'];
|
|
|
|
|
$this->add_spend($request,1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|