lizhen_gitee 9 months ago
parent
commit
69855b3c49
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/api/controller/Wenzhen.php

+ 2 - 1
application/api/controller/Wenzhen.php

@@ -40,6 +40,7 @@ class Wenzhen extends Api
         }
 
         //医生信息
+        $doctor = Db::name('doctor')->where('id',$doctor_id)->find();
         $doctor_info = Db::name('doctor_info')->where('doctor_id',$doctor_id)->find();
         if(empty($doctor_info)){
             $this->error('不存在的医生');
@@ -56,7 +57,7 @@ class Wenzhen extends Api
             if($doctor_info['typing_switch'] != 1){
                 $this->error('该医生未开通图文问诊');
             }
-            if($doctor_info['job_status'] != 1){
+            if($doctor['job_status'] != 1){
                 $this->error('该医生现在不在上班中');
             }
             $price = $doctor_info['typing_price'];