master
cody 6 months ago
parent 319868249f
commit eaf63003c8

@ -211,9 +211,9 @@ class OrdersController extends CommonController
$order->balance = $order->customer->balance;
// 是否需要签订协议0否1是
$order->need_agreements = 0;
if ($order->paramedic_id && ($order->orderAgreements->isEmpty() || ($order->orderAgreements->isNotEmpty() && $order->orderAgreements[0]->paramedic_id != $order->paramedic_id))) {
$order->need_agreements = 1;
}
// if ($order->paramedic_id && ($order->orderAgreements->isEmpty() || ($order->orderAgreements->isNotEmpty() && $order->orderAgreements[0]->paramedic_id != $order->paramedic_id))) {
// $order->need_agreements = 1;
// }
$order->paramedic_id = null;
}
return response()->json($data->toArray());

Loading…
Cancel
Save