diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index e13efb7..82a0825 100644 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -2,7 +2,6 @@ namespace App\Controller; -use App\Amqp\Producer\PrescriptionDistributePhProducer; use App\Constants\HttpEnumCode; use App\Exception\BusinessException; use App\Model\DoctorInquiryTime; diff --git a/app/Services/DoctorAuthService.php b/app/Services/DoctorAuthService.php index e25b54b..78bf191 100644 --- a/app/Services/DoctorAuthService.php +++ b/app/Services/DoctorAuthService.php @@ -472,7 +472,6 @@ class DoctorAuthService extends BaseService } } - //已选择专长列表 $expertise_ids = []; @@ -566,6 +565,15 @@ class DoctorAuthService extends BaseService Db::rollBack(); return fail(HttpEnumCode::SERVER_ERROR); } + + // 修改医生头像 + if (!empty($doctor_data['avatar'])){ + // 修改im头像 + $profile = new Profile(); + $arg = array(); + $arg['Tag_Profile_IM_Image'] = addAliyunOssWebsite($doctor_data['avatar']); + $profile->setProfile($user_info['user_id'], $arg); + } } // 医生详情数据