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