瀏覽代碼

加强判断

Pq 1 年之前
父節點
當前提交
79fa1f87a2

+ 3 - 0
BaseLibrary/src/main/java/com/cooleshow/base/utils/TimeUtils.java

@@ -1671,6 +1671,9 @@ public final class TimeUtils {
         try {
             long time = TimeUtils.string2Date(startTime).getTime();
             long cTime = System.currentTimeMillis();
+            if (cTime >= time) {
+                return true;
+            }
             long limitMinutes = Long.parseLong(targetMinutes);
             if (Math.abs(time - cTime) < limitMinutes * 60 * 1000) {
                 return true;

+ 1 - 1
student/src/main/java/com/cooleshow/student/api/APIService.java

@@ -527,6 +527,6 @@ public interface APIService {
     @GET(STUDENT_GROUP + "activity/checkReceiveReward")
     Observable<BaseResponse<AwardStatusBean>> getAwardStatus();
 
-    @GET(TEACHER_GROUP+"courseSchedule/selectRoomConfig")
+    @GET(STUDENT_GROUP+"courseSchedule/selectRoomConfig")
     Observable<BaseResponse<CommonCourseConfigBean>> getCourseConfig();
 }