zilong 4 år sedan
förälder
incheckning
e52d0d7c2b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Http/Controllers/Api/V1/DocterController.php

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

xqd
@@ -34,7 +34,7 @@ class DocterController extends AuthController
 
         $distance_field = get_user_distance_field($user);
 
-        $builder = Docter::with('office', 'qualification')->select(['id', 'type', 'name', 'phone', 'sex', 'birthday', 'avatar', 'status', 'label', 'sign', 'intro', 'office_id', 'qualification_id', 'score', 'service_persons', 'eva_num', 'service_days', 'phone_minutes', 'chat_price', 'phone_price', 'appoint_price', 'is_chat', 'is_phone', 'is_appoint', 'latitude', 'longitude', DB::raw($distance_field)])->where('status', 1);
+        $builder = Docter::with('office', 'qualification')->select(['id', 'type', 'name', 'phone', 'sex', 'birthday', 'avatar', 'status', 'label', 'sign', 'intro', 'office_id', 'qualification_id', 'score', 'service_persons', 'eva_num', 'service_days', 'phone_minutes', 'chat_price', 'phone_price', 'appoint_price', 'is_chat', 'is_phone', 'is_appoint', 'latitude', 'longitude', DB::raw($distance_field)])->where('status', 1)->where('is_then', 1)->where('phone', '<>', '');
         $list_type = !empty($req['list_type']) ? $req['list_type'] : 0;
         if ($list_type == 1) {
             $builder->where('is_phone', 1);