From a0ae51cc2aa099fdc23ffeae29496ae027c3f822 Mon Sep 17 00:00:00 2001 From: guozhen Date: Tue, 17 Jun 2025 14:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=A6=E6=83=85=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9Enodata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 +- .../jelly/zyreotv/beginning/LogUtils.java | 2 +- .../jelly/zyreotv/dlsym/RREStyles.java | 37 ++- .../abslRwgt/poolref/XSLockPlaylist.java | 235 +----------------- .../ZYTVideoPlayerDetailsActivity.java | 10 +- app/src/main/res/layout/mch_dimens_header.xml | 13 + gradle.properties | 4 +- 7 files changed, 44 insertions(+), 261 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 87112e7..1887969 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,8 @@ android { applicationId "com.shortdrama.jelly.zyreotv" minSdk 24 targetSdk 35 - versionCode 7 - versionName "1.0.6" + versionCode 8 + versionName "1.0.7" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/beginning/LogUtils.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/beginning/LogUtils.java index c256548..5a12c5f 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/beginning/LogUtils.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/beginning/LogUtils.java @@ -13,7 +13,7 @@ public class LogUtils { } // public static boolean isDebug = ApiService.isDebug;// 是否需要打印bug,可以在application的onCreate函数里面初始化 - public static boolean isDebug = false; + public static boolean isDebug = true; // public static boolean isDebug = false;// 是否需要打印bug,可以在application的onCreate函数里面初始化 private static final String TAG = "GleeStreamLog"; diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/RREStyles.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/RREStyles.java index b0560cf..655f0b5 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/RREStyles.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/RREStyles.java @@ -2,8 +2,13 @@ package com.shortdrama.jelly.zyreotv.dlsym; +import android.os.Handler; +import android.os.Looper; + import com.google.gson.JsonParseException; import com.shortdrama.jelly.zyreotv.beginning.ITItem; +import com.shortdrama.jelly.zyreotv.beginning.LogUtils; +import com.shortdrama.jelly.zyreotv.beginning.TIndicator; import org.greenrobot.eventbus.EventBus; import org.json.JSONException; @@ -29,6 +34,7 @@ public abstract class RREStyles extends DisposableObserver { @Override public void onNext(T o) { + LogUtils.d("onNext data"); try { IMACloseStroke follow = (IMACloseStroke) o; if (follow.code == 200) { @@ -38,33 +44,32 @@ public abstract class RREStyles extends DisposableObserver { } } catch (Exception e) { e.printStackTrace(); - boolean androidm = true; - if (!androidm) { - } + LogUtils.d("onNext catch"); onError(407, e.toString()); - float langX = 5598.0f; - while (langX >= 57) { - break; - } } } + private static boolean isHandling401 = false; + + @Override public void onError(Throwable e) { + LogUtils.d("onError e"); if (e instanceof HttpException) { int code = ((HttpException) e).code(); - if (code == 401) { + if (code == 401&&!isHandling401) { + isHandling401 = true; + TIndicator.saveString(TIndicator.auth, ""); EventBus.getDefault().post(ITItem.Constants_Refresh_Auth); + // 延迟一段时间后恢复 + new Handler(Looper.getMainLooper()).postDelayed(() -> isHandling401 = false, 5000); } if (code == 402) { EventBus.getDefault().post(ITItem.Constants_Refresh_LoginUser402); } attachPortSupport(BAD_NETWORK, e); - boolean runnableR = false; - if (!runnableR) { - } } else if (e instanceof ConnectException || e instanceof UnknownHostException) { @@ -93,17 +98,9 @@ public abstract class RREStyles extends DisposableObserver { } else { if (e != null) { onError(409, e.toString()); - double callA = 6836.0; - if (callA > 66) { - } - System.out.println(callA); } else { onError(407, "response body is null"); - boolean more6 = false; - while (!more6) { - break; - } - System.out.println(more6); + } } diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/XSLockPlaylist.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/XSLockPlaylist.java index 777807b..1ffbf06 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/XSLockPlaylist.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/XSLockPlaylist.java @@ -12,6 +12,7 @@ import java.util.HashMap; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; +import com.shortdrama.jelly.zyreotv.beginning.PAYLoginHeaddefault; import com.shortdrama.jelly.zyreotv.dlsym.VZBack; import com.shortdrama.jelly.zyreotv.dlsym.RREStyles; import com.shortdrama.jelly.zyreotv.dlsym.IMACloseStroke; @@ -206,243 +207,11 @@ public class XSLockPlaylist extends ViewModel { } - private long writePaintDecorPattern(long startType_c9, boolean historyDefault_9) { - String historyCollect = "filters"; - System.out.println(historyCollect); - boolean playertotalTablist = false; - int theaterDimens = 3757; - long easingErasure = 0; - playertotalTablist = false; - easingErasure *= playertotalTablist ? 68 : 57; - theaterDimens -= 58; - int _t_74 = (int) theaterDimens; - int c_2 = 1; - int m_67 = 0; - if (_t_74 > m_67) { - _t_74 = m_67; - } - while (c_2 < _t_74) { - c_2 += 1; - int w_79 = (int) c_2; - int v_64 = 1; - int z_42 = 1; - if (w_79 > z_42) { - w_79 = z_42; - } - while (v_64 < w_79) { - v_64 += 1; - int h_16 = (int) v_64; - switch (h_16) { - case 45: { - h_16 += 52; - break; - - } - case 44: { - h_16 *= 39; - break; - - } - case 52: { - h_16 += 61; - break; - - } - case 56: { - h_16 *= 28; - break; - - } - case 11: { - h_16 += 90; - break; - - } - case 23: { - break; - - } - default: - break; - - } - break; - } - break; - } - - return easingErasure; - - } - - @Override public void onError(int code, String msg) { + stayLanguages.setValue(null); - long mpchuffFiletime = this.writePaintDecorPattern(6681L, true); - - System.out.println(mpchuffFiletime); - int n_93 = (int) mpchuffFiletime; - switch (n_93) { - case 90: { - if (n_93 <= 623) { - } else if (n_93 < 78) { - - } - break; - - } - case 24: { - n_93 *= 40; - break; - - } - case 48: { - int u_96 = 0; - int b_65 = 0; - if (n_93 > b_65) { - n_93 = b_65; - - } - for (int n_60 = 1; n_60 <= n_93; n_60++) { - u_96 += (int) n_60; - if (n_60 > 0) { - n_93 -= (int) n_60; - break; - - } - int j_97 = (int) u_96; - if (j_97 > 585) { - j_97 += 39; - } - break; - - } - break; - - } - case 17: { - n_93 -= 100; - int i_95 = 0; - int j_95 = 0; - if (n_93 > j_95) { - n_93 = j_95; - - } - for (int r_25 = 1; r_25 <= n_93; r_25++) { - i_95 += (int) r_25; - n_93 *= r_25; - break; - - } - break; - - } - case 28: { - int v_8 = 0; - for (int h_81 = (int) n_93; h_81 > n_93 - 1; h_81--) { - v_8 += (int) h_81; - int g_66 = (int) v_8; - switch (g_66) { - case 76: { - g_66 -= 80; - g_66 *= 5; - break; - - } - case 8: { - g_66 -= 6; - break; - - } - case 17: { - break; - - } - case 55: { - g_66 += 74; - break; - - } - case 4: { - g_66 += 27; - break; - - } - case 93: { - g_66 *= 44; - g_66 -= 3; - break; - - } - default: - break; - - } - break; - - } - break; - - } - case 59: { - n_93 += 14; - int z_71 = 1; - int t_73 = 1; - if (n_93 > t_73) { - n_93 = t_73; - } - while (z_71 < n_93) { - z_71 += 1; - n_93 -= z_71; - break; - } - break; - - } - case 40: { - n_93 *= 40; - break; - - } - case 88: { - n_93 -= 2; - break; - - } - case 73: { - n_93 -= 42; - int k_5 = 1; - int l_97 = 0; - if (n_93 > l_97) { - n_93 = l_97; - } - while (k_5 < n_93) { - k_5 += 1; - int d_85 = (int) k_5; - break; - } - break; - - } - case 41: { - n_93 += 26; - n_93 -= 71; - break; - - } - default: - break; - - } - - System.out.println(mpchuffFiletime); - - - long freeC = 7722L; - if (freeC == 80) { - } } }); } diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/ZYTVideoPlayerDetailsActivity.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/ZYTVideoPlayerDetailsActivity.java index 38ebae1..4db8adc 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/ZYTVideoPlayerDetailsActivity.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/topics/abslRwgt/poolref/ZYTVideoPlayerDetailsActivity.java @@ -289,6 +289,9 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity { + vtViewModel.getVideoDetails(episodeDetailId, episodevideo_id, activity_id); + }); } private void showLockView(LSQExampleCloseBean.YPZTestUnselect item) { @@ -325,11 +328,12 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity { - + viewBinding.tvNodata.setVisibility(GONE); viewBinding.viewVideoRecommend.getRoot().setVisibility(INVISIBLE); if (it != null) { if (it.data != null && it.data.episodeList != null && !it.data.episodeList.isEmpty()) { - + Glide.with(ZYTVideoPlayerDetailsActivity.this).load(it.data.shortPlayInfo.getImage_url()).into(viewBinding.cover); + vtGooglePlayerAdapter = new WVideoplay(); vtGooglePlayerAdapter.setShortVideoInfo(it.data.shortPlayInfo); vtGooglePlayerAdapter.setPlayerDetailCollection(ZYTVideoPlayerDetailsActivity.this); shortVideoInfo = it.data.shortPlayInfo; @@ -340,7 +344,6 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity + + \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index f1cd4af..3524f0d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,6 +23,6 @@ android.nonTransitiveRClass=true #org.gradle.internal.http.socketTimeout=600000 # uploadCrashlyticsMappingFile systemProp.http.proxyHost=127.0.0.1 -systemProp.http.proxyPort=7890 +systemProp.http.proxyPort=26001 systemProp.https.proxyHost=127.0.0.1 -systemProp.https.proxyPort=7890 \ No newline at end of file +systemProp.https.proxyPort=26001 \ No newline at end of file