3商获得产品券

This commit is contained in:
Jerry Yan 2020-12-03 12:11:51 +08:00
parent b7d6b0ed8d
commit 0ac236a619

View File

@ -150,8 +150,8 @@ class Settlements extends Base
}else{
$agentProductMoney = round($totalMoney * (dataConf('shopPreCoupousNoInProductScale')*0.01),5);//2
}
if($agentProductMoney >= 0.01){
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,0,$agentProductMoney,'交易订单【'.$order->orderNo.'】商超所得');
if($agentProductMoney >= 0.0001){
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,$agentProductMoney,0,'订单【'.$order->orderNo.'】商超监管购户所得');
}
}
//乡镇代理
@ -168,7 +168,7 @@ class Settlements extends Base
$agentProductMoney = round($totalMoney * (dataConf('shopPreCoupousNoInProductScale')*0.01),5);//2
}
if($agentProductMoney >= 0.01){
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,0,$agentProductMoney,'交易订单【'.$order->orderNo.'】商厦所得');
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,$agentProductMoney,0,'订单【'.$order->orderNo.'】商厦监管购户所得');
}
}
//区县代理
@ -184,7 +184,7 @@ class Settlements extends Base
$agentProductMoney = round($totalMoney * (dataConf('shopPreCoupousNoInProductScale')*0.01),5);//2
}
if($agentProductMoney >= 0.01){
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,0,$agentProductMoney,'交易订单【'.$order->orderNo.'】商都所得');
Model('common/UserVouchers')->insertVouchersNotice($agentUserId,$orderId,$agentProductMoney,0,'订单【'.$order->orderNo.'】商都监管购户所得');
}
}
}