update: rewrite buy limit

This commit is contained in:
tokumeikoi
2022-07-08 02:36:33 +08:00
parent 2823f1bd47
commit 838fc7bdba
11 changed files with 90 additions and 27 deletions

View File

@ -249,11 +249,6 @@ class OrderService
return false;
}
}
$planService = new PlanService($order->plan_id);
if (!$planService->incrementInventory()) {
DB::rollBack();
return false;
}
DB::commit();
return true;
}