|
@@ -74,7 +74,7 @@ class Index extends Api
|
|
|
'd.id','d.nickname','d.avatar','d.keshi_id','d.level_id','d.hospital','d.goodat','d.ordernum',
|
|
|
'keshi.name as keshi_name',
|
|
|
'level.name as level_name','level.name_en as level_name_en',
|
|
|
- 'info.typing_switch','info.video_switch','info.typing_price','info.video_price',
|
|
|
+ 'info.typing_switch','info.video_switch','info.typing_price','info.video_price','info.video_model'
|
|
|
];
|
|
|
$list = Db::name('doctor')->alias('d')
|
|
|
->field($field)
|
|
@@ -92,10 +92,10 @@ class Index extends Api
|
|
|
$id = input('id',0);
|
|
|
|
|
|
$field = [
|
|
|
- 'd.id','d.nickname','d.avatar','d.keshi_id','d.level_id','d.hospital','d.goodat','d.ordernum','d.info',
|
|
|
+ 'd.id','d.nickname','d.avatar','d.keshi_id','d.level_id','d.hospital','d.goodat','d.ordernum','d.info','d.job_status',
|
|
|
'keshi.name as keshi_name',
|
|
|
'level.name as level_name',
|
|
|
- 'info.typing_switch','info.video_switch','info.typing_price','info.video_price',
|
|
|
+ 'info.typing_switch','info.video_switch','info.typing_price','info.video_price','info.video_model',
|
|
|
];
|
|
|
$info = Db::name('doctor')->alias('d')
|
|
|
->field($field)
|
|
@@ -113,8 +113,16 @@ class Index extends Api
|
|
|
//视频说明
|
|
|
$info['wenzhen_video_serverrule'] = config('site.wenzhen_video_serverrule');
|
|
|
|
|
|
- //该医生的视频预约详情
|
|
|
- if($info['video_switch'] == 1){
|
|
|
+ //没上班,文字接诊 停掉
|
|
|
+ if($info['typing_switch'] == 1 && $info['job_status'] == 0){
|
|
|
+ $info['typing_switch'] == 2;
|
|
|
+ }
|
|
|
+ //没上班,即时视频 停掉
|
|
|
+ if($info['video_switch'] == 1 && $info['video_model'] == 2 && $info['job_status'] == 0){
|
|
|
+ $info['video_switch'] == 2;
|
|
|
+ }
|
|
|
+ //视频问诊,排班模式,如果没排班 停掉
|
|
|
+ if($info['video_switch'] == 1 && $info['video_model'] == 1){
|
|
|
$paiban_list = $this->doctor_paiban($id,true);
|
|
|
if(empty($paiban_list)){
|
|
|
$info['video_switch'] = 2;//表示没有排班了,或已经约满
|