|
|
@ -934,11 +934,11 @@ class BaseController extends RestController
|
|
|
|
redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>"平台币足够,请关闭支付页面重新支付")));exit;
|
|
|
|
redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>"平台币足够,请关闭支付页面重新支付")));exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$request['cost'] = $request['price'];
|
|
|
|
|
|
|
|
// 实际支付金额 = 支付总金额 - 折扣抵扣价格 - 绑币和平台币抵扣金额
|
|
|
|
// 实际支付金额 = 支付总金额 - 折扣抵扣价格 - 绑币和平台币抵扣金额
|
|
|
|
$request['actual_amount'] = round($request['price'] - $discountAmount - $deductionAmount, 2).'';
|
|
|
|
$request['actual_amount'] = round($request['price'] - $discountAmount - $deductionAmount, 2).'';
|
|
|
|
$request['discount_amount'] = round($discountAmount, 2).'';
|
|
|
|
$request['discount_amount'] = round($discountAmount, 2).'';
|
|
|
|
$request['deduction_amount'] = round($deductionAmount, 2).'';
|
|
|
|
$request['deduction_amount'] = round($deductionAmount, 2).'';
|
|
|
|
|
|
|
|
$request['cost'] = $request['price'] - $deductionAmount;
|
|
|
|
$request['price'] = round($request['actual_amount'], 2).'';
|
|
|
|
$request['price'] = round($request['actual_amount'], 2).'';
|
|
|
|
return $request;
|
|
|
|
return $request;
|
|
|
|
//$this->set_message(1089,"fail",$request['price']."新支付".$pay_amount);
|
|
|
|
//$this->set_message(1089,"fail",$request['price']."新支付".$pay_amount);
|
|
|
|