修正更新用户等级方法,保证每个用户只有一条记录

This commit is contained in:
z9hang 2014-06-12 16:41:48 +08:00
parent a42c79cea2
commit 4fb96bacdc
1 changed files with 1 additions and 1 deletions

View File

@ -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的等级