main_id cz

master
tping 4 years ago
parent 6cffb9505f
commit 559882dd66

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

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

Loading…
Cancel
Save