secdomain问题

This commit is contained in:
guange 2016-02-02 17:36:11 +08:00
parent 3897f9aea2
commit eed6250145
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class Subdomain
def matches?(request)
puts request.path_parameters
o = Secdomain.where(subname: request.subdomain).first
o = ::Secdomain.where(subname: request.subdomain).first
if(@opt[:sub])
if o && o.sub_type == 2 && request.path_parameters[:sub_dir_name] == 'news'