Skip to content

Commit

Permalink
z2
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 31, 2015
1 parent a45979b commit 1b735e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def checkGrid (object)

#card class
Tracelog.where("gameid = ? and maintype = 4", grid.gameid).each do |log|
if log.gametype == 1 and globalgrid[log.pos-1] <= 13
if log.gametype == 2 and globalgrid[log.pos-1] <= 13
prizecoin = log.coin * log.mulbability
processprize(log.userid, prizecoin)
log.update(status: 1)
elsif log.gametype == 2 and globalgrid[log.pos-1] > 13 and globalgrid[log.pos-1] <= 26
elsif log.gametype == 1 and globalgrid[log.pos-1] > 13 and globalgrid[log.pos-1] <= 26
prizecoin = log.coin * log.mulbability
processprize(log.userid, prizecoin)
log.update(status: 1)
Expand Down

0 comments on commit 1b735e1

Please sign in to comment.