Merge branch 'feature/1228' into dev

master
tping 4 years ago
commit a63702b338

@ -78,8 +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) { // 支付宝官方
$request['apitype'] = "alipay";
@ -113,7 +112,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'];
$request['main_id'] = $pay_conf['main_id'];
$this->add_deposit($request, 1);
$sqpay=new Sqpay();
@ -373,7 +372,6 @@ 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";
@ -405,7 +403,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'];
$request['main_id'] = $pay_conf['main_id'];
if($request['code']==1){
$ordercheck = M("spend","tab_")->where(array('pay_order_number'=>$request["pay_order_number"]))->find();
@ -463,7 +461,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'];
$request['main_id'] = $pay_conf['main_id'];
$ordercheck = M("spend","tab_")->where(array('pay_order_number'=>$request["pay_order_number"]))->find();
if ($ordercheck) {
@ -747,8 +745,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) {
if ($pay_info['channel'] == 2) {
@ -760,7 +757,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'];
$request['main_id'] = $pay_conf['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) {
@ -1469,7 +1466,6 @@ 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) {
@ -1484,7 +1480,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'];
$request['main_id'] = $pay_conf['main_id'];
$this->add_spend($request,1);
}

Loading…
Cancel
Save