新增实名认证修改im名称
This commit is contained in:
parent
4d6460147c
commit
90e0f4c0d7
@ -13,6 +13,7 @@ use App\Model\UserDoctor;
|
|||||||
use App\Model\UserDoctorInfo;
|
use App\Model\UserDoctorInfo;
|
||||||
use App\Utils\Mask;
|
use App\Utils\Mask;
|
||||||
use App\Utils\PcreMatch;
|
use App\Utils\PcreMatch;
|
||||||
|
use Extend\TencentIm\Profile;
|
||||||
use Extend\VerifyDun\IdCard;
|
use Extend\VerifyDun\IdCard;
|
||||||
use GuzzleHttp\Exception\GuzzleException;
|
use GuzzleHttp\Exception\GuzzleException;
|
||||||
use Hyperf\DbConnection\Db;
|
use Hyperf\DbConnection\Db;
|
||||||
@ -206,6 +207,12 @@ class DoctorAuthService extends BaseService
|
|||||||
return fail(HttpEnumCode::SERVER_ERROR);
|
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();
|
Db::commit();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Db::rollBack();
|
Db::rollBack();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user