负数就不给了
This commit is contained in:
parent
0ac236a619
commit
18e188e958
@ -1576,9 +1576,11 @@ class Orders extends Base{
|
||||
$jiri_get_percent = floatval($sysConf['jiri_get_percent']);
|
||||
$giveValue = $toPaySlow*((float)$jiri_get_percent/100);
|
||||
$jiri_jiyan = $sysConf['jiri_jiyan'];
|
||||
$sm = Model('common/SysSummary');
|
||||
$sm->addSysSummary(0,$giveValue,2,"购户吉日【{$sysConf['jiri']}】:订单【".($order['orderNo']?:'--')."】送出已获优惠券扣除");
|
||||
$vm->insertAlreadyVouchersNotice($userId, $orderId, 0, $giveValue, "购户吉日:".$jiri_jiyan);
|
||||
if ($giveValue >= 0.0001) {
|
||||
$sm = Model('common/SysSummary');
|
||||
$sm->addSysSummary(0,$giveValue,2,"购户吉日【{$sysConf['jiri']}】:订单【".($order['orderNo']?:'--')."】送出已获优惠券扣除");
|
||||
$vm->insertAlreadyVouchersNotice($userId, $orderId, 0, $giveValue, "购户吉日:".$jiri_jiyan);
|
||||
}
|
||||
}
|
||||
}
|
||||
//新增订单日志
|
||||
|
Loading…
x
Reference in New Issue
Block a user