|
|
@@ -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
|