weizong song 5 years ago
parent 501cab1782
commit 3c47fd5c10

@ -449,7 +449,7 @@ class OrdersController extends CommonController
try {
$mobile = request()->mobile ?? request()->patient_mobile;
$customer = (new Customer())->firstOrCreate([
"mobile" => trim(request()->mobile)
"mobile" => $mobile
]);
$has_orders = Orders::where("customer_id", $customer->id)->whereIn("status", [Orders::STATUS_UNCONFIRMED, Orders::STATUS_UNASSIGNED, Orders::STATUS_ONGOING])->count();

Loading…
Cancel
Save