Commit 91bf371a authored by shiyu's avatar shiyu

昨天领取过礼物的,则今天签到也重新计算4

parent 5c82258a
...@@ -149,6 +149,8 @@ public class UserSigninServiceImpl implements UserSigninService { ...@@ -149,6 +149,8 @@ public class UserSigninServiceImpl implements UserSigninService {
} }
if (userSignin.getIsGet()) { if (userSignin.getIsGet()) {
return Result.failed("该奖励已领取"); return Result.failed("该奖励已领取");
} else if (userSignin.getIsReward() && !userSignin.getIsValid()) {
return Result.failed("签到天数已重置,该奖励已无效");
} }
UserSignIn updateDto = new UserSignIn(); UserSignIn updateDto = new UserSignIn();
updateDto.setId(userSignin.getId()); updateDto.setId(userSignin.getId());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment