Browse Source

Bug fixed

Mike 4 years ago
parent
commit
a51e69af10
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Http/Controllers/Api/V1/DocterController.php

+ 3 - 3
app/Http/Controllers/Api/V1/DocterController.php

xqd
@@ -187,9 +187,9 @@ class DocterController extends AuthController
             'longitude' => 'numeric',
         ]);
         $builder = Schedule::with(['schedulePeriod.timePeriod', 'schedulePeriod.organization'])->where('docter_id', $req['docter_id'])->where('schedule_type',1)->where('schedule_day', '>=', date('Ymd'))->orderBy('schedule_day');
-        if (!empty($req['organization_id'])) {
-            $builder->where('organization_id', $req['organization_id']);
-        }
+//        if (!empty($req['organization_id'])) {
+//            $builder->where('organization_id', $req['organization_id']);
+//        }
         $data = $builder->paginate($req['per_page']??15)->toArray();
         if (!empty($data)) {
             foreach ($data['data'] as $k => &$v) {