mirror of
https://github.com/v2board/v2board.git
synced 2025-04-15 14:12:36 +08:00
update: check order
This commit is contained in:
parent
ef17be2046
commit
afe8bb3171
@ -42,7 +42,8 @@ class CheckOrder extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$orders = Order::get();
|
$orders = Order::whereIn('status', [0, 1])
|
||||||
|
->get();
|
||||||
foreach ($orders as $item) {
|
foreach ($orders as $item) {
|
||||||
$orderService = new OrderService($item);
|
$orderService = new OrderService($item);
|
||||||
switch ($item->status) {
|
switch ($item->status) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user