新增医生身份认证修改im头像

This commit is contained in:
wucongxing 2023-05-08 19:34:33 +08:00
parent 4c477ce573
commit ef5a8f9691
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,6 @@
namespace App\Controller;
use App\Amqp\Producer\PrescriptionDistributePhProducer;
use App\Constants\HttpEnumCode;
use App\Exception\BusinessException;
use App\Model\DoctorInquiryTime;

View File

@ -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);
}
}
// 医生详情数据