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();