Преглед на файлове

用户给医生打视频,不在判断im是否在线

lizhen_gitee преди 6 месеца
родител
ревизия
039bccbd6e
променени са 3 файла, в които са добавени 9 реда и са изтрити 8 реда
  1. 1 0
      application/api/controller/Index.php
  2. 4 4
      application/api/controller/Wenzhen.php
  3. 4 4
      application/api/controller/tvuser/Wenzhen.php

+ 1 - 0
application/api/controller/Index.php

@@ -54,6 +54,7 @@ class Index extends Api
         if($type == 22){
             $where['info.video_switch'] = 1;
             $where['info.video_model']  = 2;
+            $where['d.job_status']  = 1; //上班中
         }
 
         //科室id

+ 4 - 4
application/api/controller/Wenzhen.php

@@ -665,11 +665,11 @@ class Wenzhen extends Api
         }
         if($wenzhen_order['status'] == 25){
             //判断医生在线状态
-            $tenim = new Tenim();
+            /*$tenim = new Tenim();
             $rs_online = $tenim->is_online('doctor'.$wenzhen_order['doctor_id']);
             if($rs_online != true){
                 $this->error('医生现在不在线,请稍后拨打');
-            }
+            }*/
 
             $this->success();
         }
@@ -683,11 +683,11 @@ class Wenzhen extends Api
 
 
         //判断患者在线状态
-        $tenim = new Tenim();
+        /*$tenim = new Tenim();
         $rs_online = $tenim->is_online('doctor'.$wenzhen_order['doctor_id']);
         if($rs_online != true){
             $this->error('医生现在不在线,请稍后拨打');
-        }
+        }*/
 
         $this->success('操作成功');
     }

+ 4 - 4
application/api/controller/tvuser/Wenzhen.php

@@ -395,11 +395,11 @@ class Wenzhen extends Api
         }
         if($wenzhen_order['status'] == 25){
             //判断医生在线状态
-            $tenim = new Tenim();
+            /*$tenim = new Tenim();
             $rs_online = $tenim->is_online('doctor'.$wenzhen_order['doctor_id']);
             if($rs_online != true){
                 $this->error('医生现在不在线,请稍后拨打');
-            }
+            }*/
 
             $this->success();
         }
@@ -413,11 +413,11 @@ class Wenzhen extends Api
 
 
         //判断患者在线状态
-        $tenim = new Tenim();
+        /*$tenim = new Tenim();
         $rs_online = $tenim->is_online('doctor'.$wenzhen_order['doctor_id']);
         if($rs_online != true){
             $this->error('医生现在不在线,请稍后拨打');
-        }
+        }*/
 
         $this->success('操作成功');
     }