Commit 87f44acf authored by shiyu's avatar shiyu

过去未领取的奖励作废

parent a90de638
......@@ -144,6 +144,9 @@ public class UserSigninServiceImpl implements UserSigninService {
try {
//查询签到记录
UserSignIn userSignin = userSignInDao.findRecord(dto.getUserId(), dto.getSignInDate());
if (userSignin == null) {
return Result.failed("该签到奖励已作废");
}
if (!userSignin.getIsReward()) {
return Result.failed("尚未完成连续签到的天数");
}
......
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