|
@@ -77,7 +77,7 @@ class Tvdoctor extends Apitv
|
|
|
$info['is_follow'] = $this->is_follow($this->auth->id,$id);
|
|
|
|
|
|
//视频说明
|
|
|
- $info['wenzhen_video_serverrule'] = config('site.wenzhen_video_serverrule');
|
|
|
+ $info['tv_wenzhen_video_serverrule'] = config('site.tv_wenzhen_video_serverrule');
|
|
|
|
|
|
$this->success(1,$info);
|
|
|
}
|
|
@@ -86,9 +86,7 @@ class Tvdoctor extends Apitv
|
|
|
public function doctor_paiban(){
|
|
|
$doctor_id = input('doctor_id',0);
|
|
|
|
|
|
- //测试临时屏蔽
|
|
|
- //$list = $this->Dbapp->name('doctor_paiban')->where('doctor_id',$doctor_id)->where('active',1)->where('activetime','gt',time()+7200)->order('activetime asc')->select();
|
|
|
- $list = $this->Dbapp->name('doctor_paiban')->where('doctor_id',$doctor_id)->where('active',1)->order('activetime asc')->select();
|
|
|
+ $list = Db::name('doctor_paiban')->where('doctor_id',$doctor_id)->where('active',1)->where('activetime','gt',time()+7200)->order('activetime asc')->select();
|
|
|
|
|
|
$newlist = [];
|
|
|
if(!empty($list)){
|
|
@@ -116,7 +114,7 @@ class Tvdoctor extends Apitv
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
|
|
|
|
|
- $checkuser = $this->Dbapp->name('doctor')->find($follow_uid);
|
|
|
+ $checkuser = Db::name('doctor')->find($follow_uid);
|
|
|
if(empty($checkuser)){
|
|
|
$this->error('此医生不存在');
|
|
|
}
|