Explorar o código

add agent appy function

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
fc4c06a608
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/models/wx_user.rb

+ 2 - 0
app/models/wx_user.rb

@@ -7,6 +7,8 @@ class WxUser < ActiveRecord::Base
   scope :所有会员, -> {}
   scope :代理, -> { where("rank=? and show_invite_mode=?",1,1) }
   scope :店长, -> { where("rank=? and show_invite_mode=?",2,1) }
+  scope :区域代理, -> { where("rank=? and show_invite_mode=?",3,1) }
+
 
   belongs_to :user
   #has_many :channel_qrcode_results, :foreign_key => :mp_openid