|
...
|
...
|
@@ -572,9 +572,7 @@ public class SmartControlService extends BaseService implements EventListener<St |
|
572
|
572
|
Log.d("room-info", "update order info");
|
|
573
|
573
|
RoomStatusInfo.DataEntity data = orderInfo.getData();
|
|
574
|
574
|
int offset = data.getNow_time() - data.getBegin_time();
|
|
575
|
|
- if (offset > 3) {
|
|
576
|
|
- CToast.makeText(this, "您已迟到" + offset + "分钟,请注意把握时间", 100 * 1000).show();
|
|
577
|
|
- }
|
|
|
575
|
+
|
|
578
|
576
|
int durationMinutes = data.getEnd_time() - data.getNow_time();
|
|
579
|
577
|
Log.d("CountService", "durationMinutes:" + durationMinutes);
|
|
580
|
578
|
if (durationMinutes <= 1) {
|
|
...
|
...
|
@@ -588,7 +586,6 @@ public class SmartControlService extends BaseService implements EventListener<St |
|
588
|
586
|
if (lastCompleteRoomStatusInfo.getData().getOrder_sn().equals(roomStatusInfo.getData().getOrder_sn())) {
|
|
589
|
587
|
if (openDoorServerTime > roomStatusInfo.getData().getBegin_time() && openDoorServerTime < roomStatusInfo.getData().getEnd_time()) {
|
|
590
|
588
|
playEndAds();
|
|
591
|
|
-
|
|
592
|
589
|
}
|
|
593
|
590
|
return;
|
|
594
|
591
|
}
|
|
...
|
...
|
@@ -600,18 +597,16 @@ public class SmartControlService extends BaseService implements EventListener<St |
|
600
|
597
|
if (localMovieMessages == null) {
|
|
601
|
598
|
show("电影信息出错,找不到相关电影");
|
|
602
|
599
|
if (offset > 3) {
|
|
603
|
|
- CToast.makeText(this, "您已迟到" + offset + "分钟,请注意把握时间,没有找到电影输电网信息,请联系客服", 90 * 1000).show();
|
|
|
600
|
+ CToast.makeText(this, "您已迟到" + offset + "分钟,请注意把握时间,没有找到电影信息,请联系客服", 90 * 1000).show();
|
|
604
|
601
|
} else {
|
|
605
|
|
- CToast.makeText(this, "没有找到电影输电网信息,请联系客服", 90 * 1000).show();
|
|
|
602
|
+ CToast.makeText(this, "没有找到电影信息,请联系客服", 90 * 1000).show();
|
|
606
|
603
|
}
|
|
607
|
604
|
}
|
|
608
|
605
|
}
|
|
609
|
|
-// if (localMovieMessages == null) {
|
|
610
|
|
-// show("没有获取到相应订单信息,即将为您播放银河护卫队");
|
|
611
|
|
-// localMovieMessages = new NewDBManager(this).queryPlayMovie("f1ebaee0a7fe50c7c5ce786b2eb9e753");
|
|
612
|
|
-// }
|
|
613
|
|
-//
|
|
614
|
606
|
if (localMovieMessages != null) {
|
|
|
607
|
+ if (offset > 3) {
|
|
|
608
|
+ CToast.makeText(this, "您已迟到" + offset + "分钟,请注意把握时间", 100 * 1000).show();
|
|
|
609
|
+ }
|
|
615
|
610
|
OpenMMUtils.openMMWithAds(this, localMovieMessages.getPlayPath(), null);
|
|
616
|
611
|
} else {
|
|
617
|
612
|
show("没有找到电影");
|
...
|
...
|
|