Browse Source

直播增加级别限制

abiao 4 years ago
parent
commit
4faae3864a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/models/live_broad.rb

+ 3 - 3
app/models/live_broad.rb

@@ -49,11 +49,11 @@ class LiveBroad < ActiveRecord::Base
           if item.length<=0
             next
           end
-          if !RANK_HASH[item].blank?
+          if !RANK_HASH[item.to_i].blank?
             if i==0
-              str=RANK_HASH[item]
+              str=RANK_HASH[item.to_i]
             else
-              str=str+","+RANK_HASH[item]
+              str=str+","+RANK_HASH[item.to_i]
             end
           end