소스 검색

add agent appy function

abiao 4 년 전
부모
커밋
fc4c06a608
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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