更新
This commit is contained in:
@@ -136,14 +136,14 @@ class TcmController extends BaseApiController
|
||||
*/
|
||||
public function getCardList()
|
||||
{
|
||||
$patientId = $this->request->get('patient_id');
|
||||
$user_id =$this->userId;
|
||||
|
||||
if (!$patientId) {
|
||||
if (!$user_id) {
|
||||
return $this->fail('患者ID不能为空');
|
||||
}
|
||||
|
||||
try {
|
||||
$result = DiagnosisLogic::getCardList($patientId);
|
||||
$result = DiagnosisLogic::getCardList($user_id);
|
||||
|
||||
if ($result === false) {
|
||||
return $this->fail(DiagnosisLogic::getError());
|
||||
|
||||
@@ -104,7 +104,7 @@ class DoctorLogic extends BaseLogic
|
||||
|
||||
$doctor = Admin::where('id', $doctorId)
|
||||
->where('disable', 0)
|
||||
->field(['id', 'name', 'account', 'avatar','specialty','license_no','enable_image_consult','enable_video_consult','enable_charge'])
|
||||
->field(['id', 'name', 'account', 'qualification_images','avatar','specialty','license_no','qualification_images','enable_image_consult','enable_video_consult','enable_charge'])
|
||||
->find();
|
||||
|
||||
if (!$doctor) {
|
||||
@@ -127,6 +127,7 @@ class DoctorLogic extends BaseLogic
|
||||
'mobile' => $doctorData['mobile'] ?? '',
|
||||
'email' => $doctorData['email'] ?? '',
|
||||
'license_no' => $doctorData['license_no'] ?? '',
|
||||
'qualification_images' => $doctorData['qualification_images'] ?? '',
|
||||
'enable_image_consult' => $doctorData['enable_image_consult'] ?? 1,
|
||||
'enable_video_consult' => $doctorData['enable_video_consult'] ?? 1,
|
||||
'enable_charge' => $doctorData['enable_charge'] ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user