9
This commit is contained in:
@@ -134,13 +134,13 @@ class User
|
||||
* @param string $ex 扩展字段
|
||||
* @return array
|
||||
*/
|
||||
public function addNotificationAccount(string $userID, string $nickname = '', string $faceURL = '', int $appMangerLevel = 3): array
|
||||
public function addNotificationAccount(string $userID, string $nickname = '', string $faceURL = '', \support\OpenImSdk\Enum\appMangerLevel $appMangerLevel = \support\OpenImSdk\Enum\appMangerLevel::Notify): array
|
||||
{
|
||||
$data = [
|
||||
'userID' => $userID,
|
||||
'nickname' => $nickname,
|
||||
'faceURL' => $faceURL,
|
||||
'appMangerLevel' => $appMangerLevel,
|
||||
'appMangerLevel' => $appMangerLevel->value,
|
||||
];
|
||||
return Utils::send(Url::$addNotificationAccount, $data, '添加通知账号错误');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user