瀏覽代碼

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