|
@@ -299,8 +299,10 @@ public class UserMockSubscribeServiceImpl extends ServiceImpl<UserMockSubscribeM
|
|
|
lqw.orderByDesc(MockMajorSubjectTime::getId).last("limit 1");
|
|
|
MockMajorSubjectTime mockMajorSubjectTime = iMockMajorSubjectTimeService.getOne(lqw);
|
|
|
try {
|
|
|
- if (System.currentTimeMillis()/1000 < formatTime(mockMajorSubjectTime.getExamTime(), mockMajorSubjectTime.getStartTime())) {
|
|
|
- userMockSubscribeVo.setReSubscribe(1);
|
|
|
+ if (Validator.isEmpty(userMockSubscribeVo.getHandStatus()) && userMockSubscribeVo.getHandStatus() == 0) {
|
|
|
+ if (System.currentTimeMillis()/1000 < formatTime(mockMajorSubjectTime.getExamTime(), mockMajorSubjectTime.getStartTime())) {
|
|
|
+ userMockSubscribeVo.setReSubscribe(1);
|
|
|
+ }
|
|
|
}
|
|
|
if (System.currentTimeMillis()/1000 < formatTime(mockMajorSubjectTime.getExamTime(), mockMajorSubjectTime.getEndTime())) {
|
|
|
userMockSubscribeVo.setCanDo(0);
|