Excel:L39-40
This commit is contained in:
parent
2da6de113e
commit
03627bcc3e
@ -106,17 +106,17 @@ class Settlements extends Base
|
||||
// 因为count一定会有数据所以不判断了
|
||||
if($data[0]["total"]<=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("refPreProductYesInSaleScale")/100),
|
||||
0,'交易订单【'.$order['orderNo'].'】推荐购户所得',1);
|
||||
0,'订单【'.$order['orderNo'].'】推荐购户所得',1);
|
||||
}
|
||||
// step 7 平台送自己的被推荐人:10000×0.4×0.5×0.5÷5=200“预获产品券”。
|
||||
$childes = DB::table("hyh_user_trees")->where(["pid"=>$order['userId']])->field("uid")->select();
|
||||
foreach ($childes as $child){
|
||||
Model('common/UserVouchers')->insertVouchersNotice($child['uid'], $orderId,
|
||||
$toCalBaseNum*((float)dataConf("helpSaleChildrenGet")/100)/sizeof($childes), 0,
|
||||
'交易订单【'.$order['orderNo'].'】被推荐所得',1);
|
||||
'订单【'.$order['orderNo'].'】被购户推荐所得',1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user