Skip to content

Commit

Permalink
[VoteUp] Bug 修复.
Browse files Browse the repository at this point in the history
- 对于 CacheManager 的报错,更改了投票 ID 的格式。
  - 具体更改为 **投票发起人_编号**,在先前的版本中为 *投票发起人.编号*。
  - 对于投票 ID 格式的改动很可能会影响到其他功能的正常工作,若您在使用过程中遇到问题请及时反馈,我会尽快修复。
  • Loading branch information
Polar-Pumpkin committed Feb 29, 2020
1 parent ca16eed commit 30c2989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/shoal/sir/voteup/config/VoteManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public Vote getVote(String id) {

public Vote startCreateVote(String starter) {
Map<VoteDataType, Object> newVote = new HashMap<>();
String id = starter + "." + (voteMap.size() + 1);
String id = starter + "_" + (voteMap.size() + 1);

newVote.put(VoteDataType.ID, id);
newVote.put(VoteDataType.STATUS, true);
Expand Down

0 comments on commit 30c2989

Please sign in to comment.