|
|
@ -424,6 +424,10 @@ class User < ApplicationRecord
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_collect? container
|
|
|
|
|
|
|
|
collections.where(container: container).exists?
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 实训用户身份
|
|
|
|
# 实训用户身份
|
|
|
|
def shixun_identity(shixun)
|
|
|
|
def shixun_identity(shixun)
|
|
|
|
@identity =
|
|
|
|
@identity =
|
|
|
@ -649,10 +653,6 @@ class User < ApplicationRecord
|
|
|
|
Educoder::Utils.random_hex(16)
|
|
|
|
Educoder::Utils.random_hex(16)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def is_collect? container
|
|
|
|
|
|
|
|
collections.where(container: container).exists?
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 全部已认证
|
|
|
|
# 全部已认证
|
|
|
|
def all_certified?
|
|
|
|
def all_certified?
|
|
|
|
authentication? && professional_certification?
|
|
|
|
authentication? && professional_certification?
|
|
|
|