修改
This commit is contained in:
parent
df71ff6ea4
commit
fde3e2d5e0
@ -1572,10 +1572,23 @@ class Orders extends Base{
|
||||
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
||||
]);
|
||||
}
|
||||
|
||||
$get_from_coupon = $calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100)*((float)dataConf('couponPercentCanUsetGet')/100);
|
||||
if ($get_from_coupon > $order['goodsMoney']) {
|
||||
$get_from_coupon = $order['goodsMoney'];
|
||||
}
|
||||
$vm = new UserVouchers();
|
||||
$vm->insertVouchersNotice($userId, $orderId, $calBaseNum*((float)dataConf('couponPercentCanUsetGet')/100), 0,
|
||||
$vm->insertVouchersNotice($userId, $orderId, $get_from_coupon, 0,
|
||||
'交易订单【'.$order['orderNo'].'】购户从优惠款中获得',1);
|
||||
}
|
||||
elseif (1 == $order['goodsType']) {
|
||||
$vm = new UserVouchers();
|
||||
$get_from_coupon = $calBaseNum*((float)dataConf('couponPercentCanUsetGet')/100);
|
||||
if ($get_from_coupon > $order['goodsMoney']) {
|
||||
$get_from_coupon = $order['goodsMoney'];
|
||||
}
|
||||
$vm->insertVouchersNotice($userId, $orderId, $get_from_coupon, 0,
|
||||
'交易订单【'.$order['orderNo'].'】购户从优惠款中获得',1);
|
||||
}
|
||||
|
||||
//新增订单日志
|
||||
$logOrder = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user