瀏覽代碼

订单等

lizhen_gitee 10 月之前
父節點
當前提交
6820d1d2bf

+ 1 - 9
application/api/controller/Baseconfig.php

@@ -16,15 +16,7 @@ class Baseconfig extends Api
     public function index(){
 
         $config = [
-            'comment_for_gold_switch'     => config('site.comment_for_gold_switch'),//好评有礼开关
-            'kefu_user_ids'            => config('site.kefu_user_ids'),//在线客服人员
-            'index_pipei_switch'    => config('site.index_pipei_switch'), //首页匹配功能开关
-            'kefu_url'    => config('site.kefu_url'), //客服超链接
-
-            //问答
-            'question_icon' => localpath_to_netpath(config('site.question_icon')),               //问号图标
-            'question_title' => config('site.question_title'),            //问答标题
-            'question_basedatakey' => config('site.question_basedatakey'),  //问答文章key
+            'kefu_phone' => config('site.kefuphoneno'),//客服电话号
         ];
 
         $this->success('success',$config);

+ 2 - 2
application/api/controller/User.php

@@ -314,11 +314,11 @@ class User extends Api
         }
         $result = Sms::check($user->mobile, $oldcaptcha, 'changemobile');
         if (!$result) {
-            $this->error(__('Captcha is incorrect'));
+            $this->error('原手机号验证码错误');
         }
         $result = Sms::check($mobile, $captcha, 'changemobile');
         if (!$result) {
-            $this->error(__('Captcha is incorrect'));
+            $this->error('新手机号验证码错误');
         }
 
         Sms::flush($user->mobile, 'changemobile');

+ 15 - 0
application/api/controller/Wenzhen.php

@@ -284,6 +284,21 @@ class Wenzhen extends Api
 
         $wenzhen_order['member_info'] = $order_member_info;
 
+        //医生详情
+        $field = [
+            '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'
+        ];
+        $doctor_info = 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')
+            ->where('d.id',$wenzhen_order['doctor_id'])->find();
+        $doctor_info = info_domain_image($doctor_info,['avatar']);
+
+        $wenzhen_order['doctor_info'] = $doctor_info;
+
         $this->success(1,$wenzhen_order);
     }
 }