Commit 317ec7ff504d7e6ee3360ffe3a84a44b97f62335

Authored by 李攀
1 parent 3a4bb3ed

log ,second film no ads

... ... @@ -633,7 +633,11 @@ public class SmartControlService extends BaseService implements EventListener<St
633 633 showMsg = String.format(ResUtils.getResResult(mContext, R.string.welcome, R.string.ads_promote, R.string.play_movie_fill_name), roomStatusInfo.getData().getFilm_name());
634 634 }
635 635 CToast.makeText(this, showMsg, 100 * 1000).show();
636   - OpenMMUtils.openMMWithAds(this, localMovieMessages.getPlayPath(), null);
  636 + if (!nextNeedReport) {
  637 + OpenMMUtils.openMMWithAds(this, localMovieMessages.getPlayPath(), null);
  638 + } else {
  639 + OpenMMUtils.openPlayer(this, localMovieMessages.getPlayPath(), null, 0);
  640 + }
637 641 } else {
638 642 LogUtils.e("room-info", "file not exists:" + orderInfo.toString());
639 643 show("没有找到电影");
... ... @@ -656,7 +660,7 @@ public class SmartControlService extends BaseService implements EventListener<St
656 660 CToast.makeText(mContext, showMsg, 30 * 1000).show();
657 661 presenter.getNextOrderInfo(SmartControlService.this, info.getData().getOrder_sn());
658 662 }
659   - }else{
  663 + } else {
660 664 LogUtils.e("info != null && info.getData() != null");
661 665 }
662 666 }
... ...
... ... @@ -56,7 +56,7 @@ public class QrCodeShowActivity extends Activity implements IUpdateQrCodeView {
56 56 closeSystem();
57 57 return;
58 58 }
59   - LogUtils.d("room-info", "QrCodeShowActivity update qr code runnable run");
  59 + LogUtils.i("room-info", "QrCodeShowActivity update qr code runnable run");
60 60 handler.postDelayed(this, 10 * 60 * 1000);
61 61 present.getQrCode(roomSn, orderSn);
62 62 }
... ... @@ -130,7 +130,7 @@ public class QrCodeShowActivity extends Activity implements IUpdateQrCodeView {
130 130 @Override
131 131 public void getQrCodeSuccess(RoomQrCodeInfo info) {
132 132 try {
133   - LogUtils.d("QrCodeShowActivity", info.getData().getCode());
  133 + LogUtils.i("QrCodeShowActivity", info.getData().getCode());
134 134 iv.setImageBitmap(QRCodeUtils.createQRCode(info.getData().getCode(), 400));
135 135 } catch (WriterException e) {
136 136 e.printStackTrace();
... ...
... ... @@ -47,7 +47,7 @@ public class CountService extends Service {
47 47 @Override
48 48 public int onStartCommand(Intent intent, int flags, int startId) {
49 49 // count = intent.getIntExtra("countDown", 0);
50   - LogUtils.d(TAG, "count is :" + count);
  50 + LogUtils.i(TAG, "count is :" + count);
51 51 if (Constant.count > 0) {
52 52 Log.d(TAG, "if");
53 53 if (Constant.count == 5) {
... ... @@ -71,7 +71,7 @@ public class CountService extends Service {
71 71 class CountDownThread extends Thread {
72 72 @Override
73 73 public void run() {
74   - LogUtils.d(TAG, "Polling...");
  74 + LogUtils.i(TAG, "Polling...");
75 75 //if true restart AskService polling
76 76 if (count-- <= 1) {
77 77 MessageEvent messageEvent = new MessageEvent();
... ... @@ -86,7 +86,7 @@ public class CountService extends Service {
86 86
87 87 @Override
88 88 public void onDestroy() {
89   - LogUtils.d(TAG, "Service:onDestroy");
  89 + LogUtils.i(TAG, "Service:onDestroy");
90 90 System.out.println("Service:onDestroy");
91 91 super.onDestroy();
92 92 }
... ...
Please register or login to post a comment