$id])->find(); if (!$order) { return '订单失效'; } if ($order['del'] == 1) { return '订单已删除'; } if ($order['shipping_status'] == 1) { return '此订单已发货'; } if ($order['order_type'] == OrderEnum::TEAM_ORDER) { $found = Order::where(['id' => $order['team_found_id']])->find(); if ($found['status'] != Team::STATUS_SUCCESS) { return '已支付的拼团订单需要等待拼团成功后才能发货'; } } return true; } }