Merge branch 'master' of /data/git/tiantian2

master
root 5 years ago
commit b73f0244d0

@ -653,6 +653,7 @@ class OrdersController extends CommonController
}
$customer = $order_items->first()->customer;
$price_changed_paid_items = $order_items->filter(function ($item) use ($request) {
dump($request->has("price"), $item->paid_at,$request->price,$item->total);
return $request->has("price") && $item->paid_at && $request->price != $item->total;
});
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");

Loading…
Cancel
Save