From 90e0f4c0d751730c7846eb5b78b42683d9049e79 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 26 Apr 2023 17:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=9E=E5=90=8D=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E4=BF=AE=E6=94=B9im=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DoctorAuthService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Services/DoctorAuthService.php b/app/Services/DoctorAuthService.php index 41ffc52..8e71835 100644 --- a/app/Services/DoctorAuthService.php +++ b/app/Services/DoctorAuthService.php @@ -13,6 +13,7 @@ use App\Model\UserDoctor; use App\Model\UserDoctorInfo; use App\Utils\Mask; use App\Utils\PcreMatch; +use Extend\TencentIm\Profile; use Extend\VerifyDun\IdCard; use GuzzleHttp\Exception\GuzzleException; use Hyperf\DbConnection\Db; @@ -206,6 +207,12 @@ class DoctorAuthService extends BaseService return fail(HttpEnumCode::SERVER_ERROR); } + // 修改im名称 + $profile = new Profile(); + $arg = array(); + $arg['Tag_Profile_IM_Nick'] = $card_name; + $profile->setProfile($user_info['user_id'], $arg); + Db::commit(); } catch (\Exception $e) { Db::rollBack();