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

master
root 6 years ago
commit 83859c2026

@ -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