main_id cz

master
tping 4 years ago
parent 6cffb9505f
commit 559882dd66

@ -74,10 +74,12 @@ class PayH5Controller extends BaseController{
exit; exit;
} }
$pay_conf = json_decode($pay_info['data']['config'], true); $pay_conf = json_decode($pay_info['data']['config'], true);
$main_id = $pay_info['main_id'];
$pay_info = $pay_info['data']; $pay_info = $pay_info['data'];
$pay_conf['id'] = $pay_info['id']; $pay_conf['id'] = $pay_info['id'];
$pay_conf['merchant_id'] = $pay_info['id']; $pay_conf['merchant_id'] = $pay_info['id'];
$pay_conf['merchant_way'] = self::ALI_PAY; $pay_conf['merchant_way'] = self::ALI_PAY;
$pay_conf['main_id'] = $main_id;
if ($pay_info['channel'] == 1) { // 支付宝官方 if ($pay_info['channel'] == 1) { // 支付宝官方
@ -112,7 +114,7 @@ class PayH5Controller extends BaseController{
$request['id'] = $pay_info['id']; $request['id'] = $pay_info['id'];
$request['merchant_id'] = $pay_info['id']; $request['merchant_id'] = $pay_info['id'];
$request['merchant_way'] = 1; $request['merchant_way'] = 1;
$request['main_id'] = $pay_conf['main_id']; $request['main_id'] = $main_id;
$this->add_deposit($request, 1); $this->add_deposit($request, 1);
$sqpay=new Sqpay(); $sqpay=new Sqpay();
@ -363,6 +365,7 @@ class PayH5Controller extends BaseController{
$this->other_price($request); $this->other_price($request);
$pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id']); $pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id']);
$main_id = $pay_info['main_id'];
if ($pay_info['code'] != 0) { if ($pay_info['code'] != 0) {
echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]); echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]);
exit; exit;
@ -372,6 +375,7 @@ class PayH5Controller extends BaseController{
$pay_conf['id'] = $pay_info['id']; $pay_conf['id'] = $pay_info['id'];
$pay_conf['merchant_id'] = $pay_info['id']; $pay_conf['merchant_id'] = $pay_info['id'];
$pay_conf['merchant_way'] = self::ALI_PAY; $pay_conf['merchant_way'] = self::ALI_PAY;
$pay_conf['main_id'] = $main_id;
if ($pay_info['channel'] == 1) { // 支付宝官方 if ($pay_info['channel'] == 1) { // 支付宝官方
// $game_set_data = get_game_set_info($request['game_id']); // $game_set_data = get_game_set_info($request['game_id']);
$request['apitype'] = "alipay"; $request['apitype'] = "alipay";
@ -741,10 +745,12 @@ class PayH5Controller extends BaseController{
exit; exit;
} }
$pay_conf = json_decode($pay_info['data']['config'], true); $pay_conf = json_decode($pay_info['data']['config'], true);
$main_id = $pay_conf['main_id'];
$pay_info = $pay_info['data']; $pay_info = $pay_info['data'];
$pay_conf['id'] = $pay_info['id']; $pay_conf['id'] = $pay_info['id'];
$pay_conf['merchant_id'] = $pay_info['id']; $pay_conf['merchant_id'] = $pay_info['id'];
$pay_conf['merchant_way'] = self::WX_PAY; $pay_conf['merchant_way'] = self::WX_PAY;
$pay_conf['main_id'] = $main_id;
//0 官方 1威富通 2俊付通 //0 官方 1威富通 2俊付通
// if (get_wx_pay_type() == 0) { // if (get_wx_pay_type() == 0) {
@ -1462,10 +1468,12 @@ class PayH5Controller extends BaseController{
exit; exit;
} }
$pay_conf = json_decode($pay_info['data']['config'], true); $pay_conf = json_decode($pay_info['data']['config'], true);
$main_id = $pay_conf['main_id'];
$pay_info = $pay_info['data']; $pay_info = $pay_info['data'];
$pay_conf['id'] = $pay_info['id']; $pay_conf['id'] = $pay_info['id'];
$pay_conf['merchant_id'] = $pay_info['id']; $pay_conf['merchant_id'] = $pay_info['id'];
$pay_conf['merchant_way'] = self::WX_PAY; $pay_conf['merchant_way'] = self::WX_PAY;
$pay_conf['main_id'] = $main_id;
//0 官方 1威富通 2俊付通 //0 官方 1威富通 2俊付通
// if (get_wx_pay_type() == 0) { // if (get_wx_pay_type() == 0) {

@ -591,11 +591,11 @@ class ShortcutController extends BaseController{
exit; exit;
} }
$pay_conf = json_decode($pay_info['data']['config'], true); $pay_conf = json_decode($pay_info['data']['config'], true);
$request['main_id'] = $pay_info['main_id'];
$pay_info = $pay_info['data']; $pay_info = $pay_info['data'];
$pay_conf['id'] = $pay_info['id']; $pay_conf['id'] = $pay_info['id'];
$request['merchant_id'] = $pay_info['id']; $request['merchant_id'] = $pay_info['id'];
$request['merchant_way'] = PayH5Controller::EXPRESS_PAY; $request['merchant_way'] = PayH5Controller::EXPRESS_PAY;
$request['main_id'] = $pay_info['main_id'];
$yeepay = new Yeepay(); $yeepay = new Yeepay();
$data['appKey'] = $pay_conf['key'];//C('yeepay.key'); $data['appKey'] = $pay_conf['key'];//C('yeepay.key');

Loading…
Cancel
Save