From 888c49c6707346be0d47902d84c3b42ec0c32d38 Mon Sep 17 00:00:00 2001 From: guozhen Date: Mon, 16 Jun 2025 13:44:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=A6=E6=83=85=E6=8E=A8?= =?UTF-8?q?=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jelly/zyreotv/dlsym/LRABackgroundHistory.java | 9 ++++++++- .../jelly/zyreotv/dlsym/PVideoplayRules.java | 10 +++++----- .../com/shortdrama/jelly/zyreotv/dlsym/VZBack.java | 2 +- .../poolref/ZYTVideoPlayerDetailsActivity.java | 10 ++++++---- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/LRABackgroundHistory.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/LRABackgroundHistory.java index 4a85646..380a6a1 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/LRABackgroundHistory.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/LRABackgroundHistory.java @@ -24,7 +24,12 @@ public class LRABackgroundHistory implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { - Response k_center = chain.proceed(chain.request()); + Response k_center = null; + try { + k_center = chain.proceed(chain.request()); //这里超时异常 + } catch (Exception e) { + throw e; + } if (k_center.body() != null && k_center.body().contentType() != null) { String activity = k_center.body().contentType().toString(); String circle = k_center.body().string(); @@ -43,6 +48,8 @@ public class LRABackgroundHistory implements Interceptor { } else { return k_center; } + + } diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/PVideoplayRules.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/PVideoplayRules.java index d9be645..cc826fd 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/PVideoplayRules.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/PVideoplayRules.java @@ -30,7 +30,7 @@ public class PVideoplayRules implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { - + Response response = null; Request request = chain.request().newBuilder() .addHeader("Content-Type", "application/json") .addHeader("authorization", TIndicator.getString(TIndicator.auth, "")) @@ -42,10 +42,10 @@ public class PVideoplayRules implements Interceptor { .addHeader("app-version", AppUtils.getPackageVersionName(GPplicationLoadingdefault.getAppContext())) .addHeader("model", Build.MODEL) // .addHeader("security","false") - .addHeader("brand",Build.BRAND) - .addHeader("system-version",Build.VERSION.RELEASE) + .addHeader("brand", Build.BRAND) + .addHeader("system-version", Build.VERSION.RELEASE) .build(); - - return chain.proceed(request); + response = chain.proceed(request); + return response; } } \ No newline at end of file diff --git a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/VZBack.java b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/VZBack.java index 3bd25f0..d525f2a 100644 --- a/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/VZBack.java +++ b/app/src/main/java/com/shortdrama/jelly/zyreotv/dlsym/VZBack.java @@ -66,7 +66,7 @@ public class VZBack extends ZRFTablistAndroid { try { String ccount = URLDecoder.decode(message, "utf-8"); LogUtils.d("OKHttp111111-----", ccount); - } catch (UnsupportedEncodingException e) { + } catch (Exception e) { e.printStackTrace(); LogUtils.d("OKHttp1111111-----", e.getMessage()); 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 8727de7..741b8f3 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 @@ -279,12 +279,11 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity()); viewBinding.viewVideoRecommend.bannerRecommend.setBannerGalleryEffect( 60, 15 ); - viewBinding.viewVideoRecommend.bannerRecommend.setAdapter(recommondVideoBannerAdapter); + translates = AppUtils.getTranslates(); if (translates != null) { viewBinding.viewVideoRecommend.tvRecommend.setText(AppUtils.replace(translates.getGleestream_recommond_title(), "90%")); @@ -359,7 +358,10 @@ public class ZYTVideoPlayerDetailsActivity extends IDDetailsRoundActivity { player.stop(); - player.release(); episodeDetailId = short_play_id; episodevideo_id = 0; activity_id = 0;