Explorar el Código

预约今天的时间

wanghaijun hace 4 años
padre
commit
263c68b18f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/AppiontController.php

+ 1 - 1
app/Http/Controllers/AppiontController.php

xqd
@@ -115,7 +115,7 @@ class AppiontController extends Controller
 
            if($data['st']){
                $order = $order->whereHas('orderPatient',function ($query) use ($data){
-                   $query->where('appoint_end_time','>=',time());
+                   $query->whereBetween('appoint_end_time',[time(),strtotime('tomorrow')]);
                });
            }