Merge pull request '首冲 次冲' (#33) from hotfix/discount_1215 into master

Reviewed-on: http://8.136.139.249:3000/wmtx/sdk/pulls/33
master
廖金灵 3 years ago
commit 5c9bf43150

@ -568,7 +568,7 @@ class BaseController extends RestController
$data_spned['extend'] = $param['extend'];
$data_spned['pay_way'] = $param["pay_way"];
if($data_spned['pay_way'] != 7){
$discount = $this->get_discount($param['game_id'],$user_entity['promote_id'],$param['user_id']);
$discount = get_discount($param['game_id'],$param['user_id']);
$data_spned['pay_amount'] = round($param["price"] * $discount['discount']/10, 2);//实付金额
$data_spned['discount_type'] = $discount['discount_type'];
}else{//苹果支付不计入折扣

Loading…
Cancel
Save