修改播放时长问题,首页w2a两次问题。

This commit is contained in:
guozhen 2025-05-15 11:15:23 +08:00
parent 72518e850e
commit 17b6f85f46
2 changed files with 7 additions and 6 deletions

View File

@ -528,7 +528,6 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
String ddl = TIndicator.getString(ITItem.Constants_DeepLinkData_URL, ""); String ddl = TIndicator.getString(ITItem.Constants_DeepLinkData_URL, "");
LogUtils.d("clipString: ddl " + ddl); LogUtils.d("clipString: ddl " + ddl);
if (!ddl.isEmpty()) { if (!ddl.isEmpty()) {
w2aSelfAttribution(ddl);
// 定义正则表达式 // 定义正则表达式
// Pattern pattern = Pattern.compile("short_play_id=(d+).*"); // Pattern pattern = Pattern.compile("short_play_id=(d+).*");
Pattern pattern = Pattern.compile("short_play_id=(\\d+)"); Pattern pattern = Pattern.compile("short_play_id=(\\d+)");
@ -553,6 +552,7 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
if (isRequestNotify) { if (isRequestNotify) {
return; return;
} }
w2aSelfAttribution(ddl);
jumpDetails(); jumpDetails();
} }

View File

@ -272,7 +272,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
translates = AppUtils.getTranslates(); translates = AppUtils.getTranslates();
if (translates != null) { if (translates != null) {
viewBinding.viewVideoRecommend.tvRecommend.setText(AppUtils.replace(translates.getGleestream_recommond_title(),"90%")); viewBinding.viewVideoRecommend.tvRecommend.setText(AppUtils.replace(translates.getGleestream_recommond_title(), "90%"));
viewBinding.viewVideoRecommend.tvWatchNowRecommend.setText(translates.getGleestream_recommond_watchnow()); viewBinding.viewVideoRecommend.tvWatchNowRecommend.setText(translates.getGleestream_recommond_watchnow());
} }
} }
@ -285,7 +285,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
if (currentPosition > 0) { if (currentPosition > 0) {
LSQExampleCloseBean.YPZTestUnselect previousItem = vtGooglePlayerAdapter.getItems().get(currentPosition - 1); LSQExampleCloseBean.YPZTestUnselect previousItem = vtGooglePlayerAdapter.getItems().get(currentPosition - 1);
if (previousItem != null && previousItem.isIs_lock()) { if (previousItem != null && previousItem.isIs_lock()) {
viewBinding.viewLock.tvUnlockEpisode.setText(translates!=null?translates.getGleestream_lock():getString(R.string.unlock_episode_coins_last)); viewBinding.viewLock.tvUnlockEpisode.setText(translates != null ? translates.getGleestream_lock() : getString(R.string.unlock_episode_coins_last));
} else { } else {
if (translates != null) { if (translates != null) {
viewBinding.viewLock.tvUnlockEpisode.setText(AppUtils.replace(translates.getGleestream_unlock_coins(), String.valueOf(item.getCoins()))); viewBinding.viewLock.tvUnlockEpisode.setText(AppUtils.replace(translates.getGleestream_unlock_coins(), String.valueOf(item.getCoins())));
@ -530,7 +530,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
if (exampleRechargeDialogFragment != null) { if (exampleRechargeDialogFragment != null) {
exampleRechargeDialogFragment.dismiss(); exampleRechargeDialogFragment.dismiss();
} }
PAYLoginHeaddefault.revealToast(translates!=null?translates.getGleestream_googlepay_success():getString(R.string.google_pay_success), 0); PAYLoginHeaddefault.revealToast(translates != null ? translates.getGleestream_googlepay_success() : getString(R.string.google_pay_success), 0);
needRefresh = true; needRefresh = true;
userViewModel.getUserInfo(); userViewModel.getUserInfo();
// LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition); // LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition);
@ -657,6 +657,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
} }
if (ITItem.Constants_Google_PLAYER_STATUS_FINISH_DETAIL.equals(event)) { if (ITItem.Constants_Google_PLAYER_STATUS_FINISH_DETAIL.equals(event)) {
LogUtils.d("播放到最后==="); LogUtils.d("播放到最后===");
needRestart = true;
if (viewBinding.viewPagerVtEpisode.getCurrentItem() == vtGooglePlayerAdapter.getItems().size() - 1) { if (viewBinding.viewPagerVtEpisode.getCurrentItem() == vtGooglePlayerAdapter.getItems().size() - 1) {
//播放到最后 //播放到最后
vtViewModel.getDetailsRecommand(); vtViewModel.getDetailsRecommand();
@ -685,7 +686,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
viewBinding.viewPagerVtEpisode.setCurrentItem(nextPosition); viewBinding.viewPagerVtEpisode.setCurrentItem(nextPosition);
} }
} }
needRestart = true;
if (activity_id != 0) { if (activity_id != 0) {
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition - 1); LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition - 1);
if (item != null) { if (item != null) {
@ -772,7 +773,7 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity<MchDim
if (vtGooglePlayerAdapter != null && !vtGooglePlayerAdapter.getItems().isEmpty()) { if (vtGooglePlayerAdapter != null && !vtGooglePlayerAdapter.getItems().isEmpty()) {
LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition); LSQExampleCloseBean.YPZTestUnselect item = vtGooglePlayerAdapter.getItems().get(currentPosition);
if (!item.isIs_lock()) { if (!item.isIs_lock()) {
vtViewModel.uploadHistorySeconds(pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id()); vtViewModel.uploadHistorySeconds(needRestart ? 0 : pageGoogleExoPlayerView().getlastProgress(), item.getShort_play_id(), item.getShort_play_video_id());
} }
if (shortVideoInfo != null) { if (shortVideoInfo != null) {