|
|
|
@ -69,7 +69,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$game = M('game', 'tab_')->where(['id' => $game_id])->find();
|
|
|
|
|
$pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id']);
|
|
|
|
|
$pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id'], $request['price']);
|
|
|
|
|
if ($pay_info['code'] != 0) {
|
|
|
|
|
echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]);
|
|
|
|
|
exit;
|
|
|
|
@ -427,7 +427,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
$this->other_price($request, $discountAmount);
|
|
|
|
|
|
|
|
|
|
$pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id']);
|
|
|
|
|
$pay_info = get_payment_config(self::ALI_PAY, $game, $request['user_id'], $request['price']);
|
|
|
|
|
if ($pay_info['code'] != 0) {
|
|
|
|
|
echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]);
|
|
|
|
|
exit;
|
|
|
|
@ -876,7 +876,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$game = M('game', 'tab_')->where(['id' => $game_id])->find();
|
|
|
|
|
$pay_info = get_payment_config(self::WX_PAY, $game, $request['user_id']);
|
|
|
|
|
$pay_info = get_payment_config(self::WX_PAY, $game, $request['user_id'], $request['price']);
|
|
|
|
|
if ($pay_info['code'] != 0) {
|
|
|
|
|
echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]);
|
|
|
|
|
exit;
|
|
|
|
@ -1651,7 +1651,7 @@ class PayH5Controller extends BaseController{
|
|
|
|
|
$this->other_price($request, $discountAmount);
|
|
|
|
|
$pay_amount = $request['price'];
|
|
|
|
|
|
|
|
|
|
$pay_info = get_payment_config(self::WX_PAY, $game, $request['user_id']);
|
|
|
|
|
$pay_info = get_payment_config(self::WX_PAY, $game, $request['user_id'], $request['price']);
|
|
|
|
|
if ($pay_info['code'] != 0) {
|
|
|
|
|
echo json_encode(['code'=>1010,'msg'=> $pay_info['msg']]);
|
|
|
|
|
exit;
|
|
|
|
|