Browse Source

修改问诊设置

lizhen_gitee 10 months ago
parent
commit
98d95a0596

+ 1 - 1
application/api/controller/doctor/User.php

@@ -356,7 +356,7 @@ class User extends Apic
         if(empty($data)){
             $this->success();
         }
-        $update_rs = Db::name('doctor_info')->where('id',$this->auth->id)->update($data);
+        $update_rs = Db::name('doctor_info')->where('doctor_id',$this->auth->id)->update($data);
 
         $this->success();
     }

+ 1 - 1
application/common/controller/Apic.php

@@ -420,7 +420,7 @@ class Apic
         }
 
         defined('API_REQUEST_LOG_TYPE') or define('API_REQUEST_LOG_TYPE', $this->logType);
-        $params = $this->request->request();
+        $params = input();
         if ($this->logType === 1){
             //日志统一写入
             register_shutdown_function([new LogUtil, 'close']);