36元问题
This commit is contained in:
parent
18e188e958
commit
70f60d11df
@ -1547,15 +1547,19 @@ class Orders extends Base{
|
|||||||
'预获产品券转换所扣', 0);
|
'预获产品券转换所扣', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 20201203预获产品券 * 层数*基数
|
||||||
|
$buyerPreProductNum = round(($calBaseNum * (dataConf('couponPercentCanUsetGet')*0.01)),5);//1
|
||||||
|
$totalMoney = $order['realTotalMoney'];//产品额
|
||||||
|
$buyerPreProductNum = $buyerPreProductNum > $totalMoney ? $totalMoney : $buyerPreProductNum;
|
||||||
// 10.15添加:助购户的 助购预获 减少的同时 代快付值等额减少
|
// 10.15添加:助购户的 助购预获 减少的同时 代快付值等额减少
|
||||||
if ((int)$order["helpUserLevel"] === 1) {
|
if ((int)$order["helpUserLevel"] === 1) {
|
||||||
Db::name("orders")->where(compact('orderId'))->update([
|
Db::name("orders")->where(compact('orderId'))->update([
|
||||||
"helpGetCount"=>$order['goodsMoney']*((int)$order["helpUserLevel"]),
|
"helpGetCount"=>$buyerPreProductNum,
|
||||||
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
||||||
]);}
|
]);}
|
||||||
else {
|
else {
|
||||||
Db::name("orders")->where(compact('orderId'))->update([
|
Db::name("orders")->where(compact('orderId'))->update([
|
||||||
"helpGetCount"=>$order['goodsMoney']*((int)$order["helpUserLevel"])*(float)dataConf("helpSaleCalBase"),
|
"helpGetCount"=>$buyerPreProductNum*((int)$order["helpUserLevel"])*(float)dataConf("helpSaleCalBase"),
|
||||||
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
"helpGetCount2"=>$calBaseNum*((float)dataConf('helpSaleCouponsCalBase')/100),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user