mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 07:20:44 +00:00
rename VMessAccount to vmess.Account
This commit is contained in:
17 files changed
+288
-274
No files matched your search
@@ -14,16 +14,8 @@ func (u *User) UnmarshalJSON(data []byte) error {
|
||||
return err
|
||||
}
|
||||
|
||||
var rawAccount AccountJson
|
||||
if err := json.Unmarshal(data, &rawAccount); err != nil {
|
||||
return err
|
||||
}
|
||||
account, err := rawAccount.GetAccount()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
*u = *NewUser(account, UserLevel(rawUserValue.LevelByte), rawUserValue.EmailString)
|
||||
u.Email = rawUserValue.EmailString
|
||||
u.Level = UserLevel(rawUserValue.LevelByte)
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user