weizong song 3 months ago
parent 03f078a8f3
commit f9e8276ba1

@ -874,7 +874,7 @@ class OrdersController extends CommonController
});
$price_changed_last_month_paid_items = $price_changed_paid_items->filter(function ($item) {
return (date("Ym", strtotime($item->paid_at)) != date("Ym")) || 1;
return (date("Ym", strtotime($item->paid_at)) != date("Ym")) && 0;
});
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");

Loading…
Cancel
Save