Skip to content

Commit

Permalink
change purchase notify
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyoum committed Apr 7, 2016
1 parent a0ecc81 commit 162d0ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sanguo/core/purchase.py
Expand Up @@ -183,12 +183,12 @@ def send_notify(self):
times = self.all_times()

for _id in PURCHASE.keys():
s = msg.status.add()
s.id = _id
s.first = _id not in times
if _id in times:
s = msg.status.add()
s.id = _id
s.first = False

msg.yueka_remained_days = self.mongo_record.yueka_remained_days

publish_to_char(self.char_id, pack_msg(msg))


Expand Down

0 comments on commit 162d0ba

Please sign in to comment.