Skip to content

Commit

Permalink
score to balance: recorded
Browse files Browse the repository at this point in the history
  • Loading branch information
harveyprince committed Mar 21, 2015
1 parent 2a5d51b commit 8c16964
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified build/classes/com/cinemaonline/service/impl/VipServiceImpl.class
Binary file not shown.
6 changes: 5 additions & 1 deletion src/com/cinemaonline/service/impl/VipServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,12 @@ public OperaResult scoreToBalance(String userid, int score) {
}
card.setScore(card.getScore()-score);
// 兑换率
card.setBalance(card.getBalance()+score/100);
vipDao.updateCard(card);
VipOperaInfo voi = new VipOperaInfo();
voi.setRecharge(score/100);
voi.setPurpose("score translate");
voi.setUserid(userid);
cardBalanceOpera(voi);
result.setResult(true);
return result;
}
Expand Down

0 comments on commit 8c16964

Please sign in to comment.