Browse Source

医生列表,医生详情

lizhen_gitee 11 months ago
parent
commit
209e56f71e
2 changed files with 16 additions and 1 deletions
  1. 8 1
      application/api/controller/Index.php
  2. 8 0
      application/extra/site.php

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

@@ -73,12 +73,14 @@ class Index extends Api
         $field = [
             '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 as level_name','level.name_en as level_name_en',
+            'info.typing_switch','info.video_switch','info.typing_price','info.video_price',
         ];
         $list = Db::name('doctor')->alias('d')
             ->field($field)
             ->join('doctor_level level','d.level_id = level.id','LEFT')
             ->join('keshi','d.keshi_id = keshi.id','LEFT')
+            ->join('doctor_info info','d.id = info.doctor_id','LEFT')
             ->where($where)->order('d.ordernum desc')->autopage()->select();
         $list = list_domain_image($list,['avatar']);
 
@@ -106,6 +108,11 @@ class Index extends Api
         //是否关注
         $info['is_follw'] = $this->is_follow($this->auth->id,$id);
 
+        //图文说明
+        $info['wenzhen_typing_serverrule'] = config('site.wenzhen_typing_serverrule');
+        //视频说明
+        $info['wenzhen_video_serverrule'] = config('site.wenzhen_video_serverrule');
+
         $this->success(1,$info);
     }
 

+ 8 - 0
application/extra/site.php

@@ -76,4 +76,12 @@ return array (
   'min_takecash_money' => '1',
   'max_takecash_money' => '10000',
   'takecash_plat_bili' => '6',
+  'wenzhen_video_serverrule' => '服务说明:
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。',
+  'wenzhen_typing_serverrule' => '服务说明:
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。
+1、选择本服务后,您可在咨询医生前提交初诊时的诊断结果,一段说明文字和6张图片以描述您的病情信息,为了保证咨询质量请务必填写真实信息。',
 );