新增实名认证修改im名称

This commit is contained in:
wucongxing 2023-04-26 17:58:52 +08:00
parent 4d6460147c
commit 90e0f4c0d7

View File

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