Skip to content
Browse files

modefiy product pay_money level to one

  • Loading branch information...
1 parent 741d630 commit edec02c25055d675291e857ff4762862bd998845 @bonyz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/product.rb
View
2 app/models/product.rb
@@ -30,7 +30,7 @@ def pay!(member_id, username)
if !parent_id
return true
- elsif parent_id && @@pay_count < 5
+ elsif parent_id && @@pay_count < 1
parent.rjnum = parent.rjnum + self.price*self.percent
parent.t_point = parent.t_point + 1
parent.save!

0 comments on commit edec02c

Please sign in to comment.
Something went wrong with that request. Please try again.