|
@@ -5,7 +5,7 @@ class InviteBenefitOrder < ActiveRecord::Base
|
|
|
self.table_name = "invite_benefit_orders"
|
|
self.table_name = "invite_benefit_orders"
|
|
|
attr_accessor :wx_user_name, :ind_wx_user_name
|
|
attr_accessor :wx_user_name, :ind_wx_user_name
|
|
|
|
|
|
|
|
- SOURCE_ENUM = [["代金券充值佣金","balance_benefit"],["邀请绑定","binding"],["直推商品佣金","product_benefit"],["分享商品佣金","fx_product_benefit"],["项目佣金","project_benefit"]]
|
|
|
|
|
|
|
+ SOURCE_ENUM = [["店长申请佣金","shop_benefit"],["代金券充值佣金","balance_benefit"],["邀请绑定","binding"],["直推商品佣金","product_benefit"],["分享商品佣金","fx_product_benefit"],["项目佣金","project_benefit"]]
|
|
|
|
|
|
|
|
def wx_user_name
|
|
def wx_user_name
|
|
|
u = WxUser.where(" id = ?", self.wx_uid).first
|
|
u = WxUser.where(" id = ?", self.wx_uid).first
|