Ready for release
This commit is contained in:
parent
439b5a2ce0
commit
213c92b522
2 changed files with 5 additions and 2 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 186f0aac0964c95ed4826894ddf888e32e00d46b
|
||||
Subproject commit 220a080a1b8ace8718188420c02d914d8cd2f074
|
|
@ -108,7 +108,10 @@ func (user *User) GetRemainingCapacity() uint64 {
|
|||
|
||||
// GetPolicyID 获取用户当前的存储策略ID
|
||||
func (user *User) GetPolicyID(prefer uint) uint {
|
||||
return user.Group.PolicyList[0]
|
||||
if len(user.Group.PolicyList) > 0 {
|
||||
return user.Group.PolicyList[0]
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// GetUserByID 用ID获取用户
|
||||
|
|
Loading…
Add table
Reference in a new issue