You've already forked qlg.tsgz.moe
修改
This commit is contained in:
@ -1572,10 +1572,23 @@ class Orders extends Base{
|
|||||||
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
"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, $get_from_coupon, 0,
|
||||||
$vm->insertVouchersNotice($userId, $orderId, $calBaseNum*((float)dataConf('couponPercentCanUsetGet')/100), 0,
|
|
||||||
'交易订单【'.$order['orderNo'].'】购户从优惠款中获得',1);
|
'交易订单【'.$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 = [];
|
$logOrder = [];
|
||||||
|
Reference in New Issue
Block a user