修正更新用户等级方法,保证每个用户只有一条记录
This commit is contained in:
parent
a42c79cea2
commit
4fb96bacdc
|
@ -890,7 +890,7 @@ class User < Principal
|
|||
|
||||
#更新用户等级 - by zjc
|
||||
def update_user_level
|
||||
user_level = UserLevels.new
|
||||
user_level = self.level.nil? ? UserLevels.new : self.level
|
||||
user_level.user = self
|
||||
|
||||
#判断user的等级
|
||||
|
|
Loading…
Reference in New Issue