Excel:L38
This commit is contained in:
parent
ab20a32c1e
commit
2da6de113e
@ -1526,10 +1526,10 @@ class Orders extends Base{
|
||||
// 10000×0.4×0.5×0.5=1000“预获优惠券”。
|
||||
if ((int)$order["helpUserLevel"] === 1) {
|
||||
$vm->insertHelpSaleNotice($userId, $orderId, $order['goodsMoney']*((int)$order["helpUserLevel"]),
|
||||
'交易订单【'.$order['orderNo'].'】购户购物所得', 1);
|
||||
'订单【'.$order['orderNo'].'】购户购物所得', 1);
|
||||
} else {
|
||||
$vm->insertHelpSaleNotice($userId, $orderId, $order['goodsMoney']*((int)$order["helpUserLevel"])*(float)dataConf("helpSaleCalBase"),
|
||||
'交易订单【'.$order['orderNo'].'】购户购物所得', 1);
|
||||
'订单【'.$order['orderNo'].'】购户购物所得', 1);
|
||||
}
|
||||
|
||||
// step 8 平台送自己的上第N层:扣减“助购预获”、“预获产品券”各10000×0.4×0.5=2000,
|
||||
|
@ -52,9 +52,9 @@ class Settlements extends Base
|
||||
if($buyerPreProductNum > 0 || $buyerPreCoupousNum > 0){
|
||||
if(3 == $order->goodsType){
|
||||
// helpSaleCouponsCalBase == 基数
|
||||
Model('common/UserVouchers')->insertVouchersNotice($order->userId,$orderId,$buyerPreProductNum*((float)dataConf('helpSaleCouponsCalBase')/100),$buyerPreCoupousNum*((float)dataConf('helpSaleCouponsCalBase')/100),'交易订单【'.$order->orderNo.'】购户购物所得');
|
||||
Model('common/UserVouchers')->insertVouchersNotice($order->userId,$orderId,$buyerPreProductNum*((float)dataConf('helpSaleCouponsCalBase')/100),$buyerPreCoupousNum*((float)dataConf('helpSaleCouponsCalBase')/100),'订单【'.$order->orderNo.'】购户购物所得');
|
||||
}else{
|
||||
Model('common/UserVouchers')->insertVouchersNotice($order->userId,$orderId,$buyerPreProductNum,$buyerPreCoupousNum,'交易订单【'.$order->orderNo.'】购户购物所得');
|
||||
Model('common/UserVouchers')->insertVouchersNotice($order->userId,$orderId,$buyerPreProductNum,$buyerPreCoupousNum,'订单【'.$order->orderNo.'】购户购物所得');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user