Mike há 4 anos atrás
pai
commit
c0edf61c80
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/Http/Controllers/Api/V2/DoctorController.php

+ 3 - 3
app/Http/Controllers/Api/V2/DoctorController.php

xqd
@@ -197,9 +197,9 @@ class DoctorController extends AuthController
      * @return mixed
      */
     public function getSettingBase(){
-        $user = $this->user;
-        $doctor_id = (new Commons)->getUserIdByDoctorId($user['phone']);
-        $finds = Docter::select(['is_chat', 'is_phone', 'is_appoint'])->where('id', $doctor_id)->first()->toArray();
+        $finds = $this->user;
+//        $doctor_id = (new Commons)->getUserIdByDoctorId($user['phone']);
+//        $finds = Docter::select(['is_chat', 'is_phone', 'is_appoint'])->where('id', $doctor_id)->first()->toArray();
         $finds['is_chat'] = $finds['is_chat'] == 0 ? false : true;
         $finds['is_phone'] = $finds['is_phone'] == 0 ? false : true;
         $finds['is_appoint'] = $finds['is_appoint'] == 0 ? false : true;