各种适配新Android Api,修复各种Bug

This commit is contained in:
2019-01-31 23:05:48 +08:00
parent a1cfc9b914
commit 81f730ea68
6 changed files with 83 additions and 69 deletions

View File

@@ -48,10 +48,11 @@ class Lottery:
if self.isFinished:
ret = "恭喜以下中奖用户:\n"
for i in self.luckyUsers:
ret += "\t{} {}\n".format(i,self.prizeName)
ret += "\t参与人数:{}".format(self.joinedUserCount)
ret += "> {} {}\n".format(i,self.prizeName)
ret += "> 参与人数:{}".format(self.joinedUserCount)
return ret
elif self.isActive:
return "正在抽奖中。。。参与人数:{}".format(self.joinedUserCount)
return "正在抽奖中。。。\n" \
"> 参与人数:{}".format(self.joinedUserCount)
else:
return "抽奖已失效"