| 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;
|