修改补贴发放
This commit is contained in:
parent
c2d875b6b7
commit
d404fc4ed2
@ -55,9 +55,10 @@ class ActivateCouponListen extends TimerService implements ListenerInterface
|
||||
$purchaseTarget = bcmul($saleTarget, 0.2, 2);
|
||||
$officialPurchaseTarget = bcmul($saleTarget, 0.3, 2);
|
||||
}
|
||||
if ($merchant['sale_amount'] >= $saleTarget &&
|
||||
$merchant['purchase_amount'] >= $purchaseTarget &&
|
||||
$merchant['official_purchase_amount'] >= $officialPurchaseTarget) {
|
||||
$isFinished = $merchant['sale_amount'] >= $saleTarget &&
|
||||
$merchant['official_purchase_amount'] >= $officialPurchaseTarget &&
|
||||
bcadd($merchant['purchase_amount'], $merchant['official_purchase_amount'], 2) >= bcadd($purchaseTarget, $officialPurchaseTarget, 2);
|
||||
if ($isFinished) {
|
||||
$item->send_status = StoreCouponDetail::SEND_AUDIT;
|
||||
$item->save();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user