Excel:L42-43
This commit is contained in:
parent
03627bcc3e
commit
209a90d585
@ -74,9 +74,9 @@ class Settlements extends Base
|
||||
// step 3 平台送商户:10000×0.4=4000“预获产品券”
|
||||
// 10000×0.4=4000“预获优惠券”
|
||||
Model('common/UserVouchers')->insertVouchersNotice($shops['userId'], $orderId, $calBaseNum, $calBaseNum,
|
||||
'交易订单【'.$order->orderNo.'】商户售物所得',1);
|
||||
'订单【'.$order->orderNo.'】商户售物所得',1);
|
||||
}else{
|
||||
Model('common/UserVouchers')->insertVouchersNotice($shops['userId'],$orderId,$sellerPreProductNum,$sellerPreCoupousNum,'交易订单【'.$order->orderNo.'】商户售物所得');
|
||||
Model('common/UserVouchers')->insertVouchersNotice($shops['userId'],$orderId,$sellerPreProductNum,$sellerPreCoupousNum,'订单【'.$order->orderNo.'】商户售物所得');
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,10 +93,10 @@ class Settlements extends Base
|
||||
// 因为count一定会有数据所以不判断了
|
||||
if((float)$data[0]["total"]<=(float)dataConf("refPreProductYdGTMoney")){
|
||||
Model('common/UserVouchers')->insertVouchersNotice($uUserId, $orderId,$toCalBaseNum*((float)dataConf("refPreProductNoInSaleScale")/100),
|
||||
0,'交易订单【'.$order['orderNo'].'】推荐商户所得',1);
|
||||
0,'订单【'.$order['orderNo'].'】推荐商户所得',1);
|
||||
}else{
|
||||
Model('common/UserVouchers')->insertVouchersNotice($uUserId, $orderId,$toCalBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100)*((float)dataConf("refPreProductYesInSaleScale")/100),
|
||||
0,'交易订单【'.$order['orderNo'].'】推荐商户所得',1);
|
||||
0,'订单【'.$order['orderNo'].'】推荐商户所得',1);
|
||||
}
|
||||
// step 6 平台送自己的推荐人:当消费超过限制值时10000×0.4×0.5×0.5=1000“预获产品券”;
|
||||
// 当消费低于限制值时10000×0.4×0.5×0.2=400“预获产品券”。
|
||||
|
Loading…
x
Reference in New Issue
Block a user