Browse Source

直播增加级别限制

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

+ 3 - 0
app/models/live_broad.rb

@@ -24,6 +24,9 @@ class LiveBroad < ActiveRecord::Base
       i=0
       if self.rank_str.length>0
         self.rank_str.each do |item|
+          if item.length<=0
+            continue
+          end
           if i==0
             str=item.to_s
           else