v1.0.5 修改

This commit is contained in:
guozhen 2025-05-13 17:29:26 +08:00
parent 24a1f99ca6
commit 72518e850e
6 changed files with 22 additions and 12 deletions

View File

@ -13,7 +13,7 @@ public class LogUtils {
}
// public static boolean isDebug = ApiService.isDebug;// 是否需要打印bug可以在application的onCreate函数里面初始化
public static boolean isDebug = true;
public static boolean isDebug = false;
// public static boolean isDebug = false;// 是否需要打印bug可以在application的onCreate函数里面初始化
private static final String TAG = "GleeStreamLog";

View File

@ -98,7 +98,7 @@ public class TimeUtils {
long lastOpenTime = TIndicator.getLong(ITItem.CONSTANTS_NotifyTime_key, 0);
if (lastOpenTime != 0) {
long current = System.currentTimeMillis();
if (current - lastOpenTime >= 0) { //(24 * 60 * 60 * 1000)
if (current - lastOpenTime >= (24 * 60 * 60 * 1000)) { //
TIndicator.saveLong(ITItem.CONSTANTS_NotifyTime_key, System.currentTimeMillis());
return true;
} else {
@ -114,7 +114,7 @@ public class TimeUtils {
long lastOpenTime = TIndicator.getLong(ITItem.CONSTANTS_VipPurchaseTime_key, 0);
if (lastOpenTime != 0) {
long current = System.currentTimeMillis();
if (current - lastOpenTime >=0 ) { //(60 * 60 * 1000)
if (current - lastOpenTime >=(60 * 60 * 1000) ) { //
TIndicator.saveLong(ITItem.CONSTANTS_VipPurchaseTime_key, System.currentTimeMillis());
return true;
} else {
@ -136,7 +136,6 @@ public class TimeUtils {
total = String.format("%02d", (totalSecond / 1000 / 60)) + ":" + String.format("%02d", (totalSecond / 1000) % 60);
}
return current + "/" + total;
}

View File

@ -41,7 +41,9 @@ public class PVideoplayRules implements Interceptor {
.addHeader("time_zone", TimeUtils.getCurrentTimeZone())
.addHeader("app-version", AppUtils.getPackageVersionName(GPplicationLoadingdefault.getAppContext()))
.addHeader("model", Build.MODEL)
.addHeader("security","false")
// .addHeader("security","false")
.addHeader("brand",Build.BRAND)
.addHeader("system-version",Build.VERSION.RELEASE)
.build();
return chain.proceed(request);

View File

@ -128,8 +128,6 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
@Override
public void initView() {
LogUtils.d("notify=== initView" + getIntent().getStringExtra("path"));
path = getIntent().getStringExtra("path");
short_play_id = getIntent().getStringExtra("short_play_id");
message_id = getIntent().getStringExtra("message_id");
@ -226,10 +224,8 @@ public class AExtractionActivity extends IDDetailsRoundActivity<TManifestService
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
LogUtils.d("notify== onNewIntent");
setIntent(intent);
if (intent != null) {
LogUtils.d("notify=== onNewIntent" + getIntent().getStringExtra("path"));
path = intent.getStringExtra("path");
short_play_id = intent.getStringExtra("short_play_id");
message_id = intent.getStringExtra("message_id");

View File

@ -38,7 +38,6 @@ public class IIUAgreementBuildActivity extends IDDetailsRoundActivity<GEventBott
@Override
public void initView() {
LogUtils.d("notify== splash initview");
if (TextUtils.isEmpty(TIndicator.getString(ITItem.CONSTANTS_Lang_key, ""))) {
String lang = Locale.getDefault().getLanguage();
TIndicator.saveString(ITItem.CONSTANTS_Lang_key, CONSTANTS_Lang_key_System + lang);
@ -59,7 +58,6 @@ public class IIUAgreementBuildActivity extends IDDetailsRoundActivity<GEventBott
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
LogUtils.d("notify== splash onNewIntent");
Uri uriUrl = intent.getData();
if (null != uriUrl) {
TIndicator.saveString(ITItem.Constants_DeepLinkData_URL, uriUrl.toString());

View File

@ -41,6 +41,7 @@ import com.shortdrama.jelly.zyreotv.R;
import com.shortdrama.jelly.zyreotv.beginning.AppUtils;
import com.shortdrama.jelly.zyreotv.beginning.ITItem;
import com.shortdrama.jelly.zyreotv.beginning.LRewards;
import com.shortdrama.jelly.zyreotv.beginning.LogUtils;
import com.shortdrama.jelly.zyreotv.beginning.PAYLoginHeaddefault;
import com.shortdrama.jelly.zyreotv.beginning.REnterCircle;
import com.shortdrama.jelly.zyreotv.beginning.TIndicator;
@ -58,7 +59,6 @@ import com.shortdrama.jelly.zyreotv.topics.dts.KDZShareRound;
import com.shortdrama.jelly.zyreotv.unconfirmedPiecewise.GSTranslatesBean;
import com.shortdrama.jelly.zyreotv.unconfirmedPiecewise.TJEpisodeRoundBean;
import com.shortdrama.jelly.zyreotv.unconfirmedPiecewise.ZYTPaySettingBean;
import com.youth.banner.util.LogUtils;
import org.greenrobot.eventbus.EventBus;
@ -659,6 +659,11 @@ public class UBJPrivateOllowFragment extends Fragment {
seenMarkView.getGooglePayLiveData().observe(getActivity(), imaCloseStroke -> {
if (vipPurchaseDialog != null) {
zytGooglePayUtils.clearInstance();
vipPurchaseDialog.dismiss();
vipPurchaseDialog = null;
}
if (imaCloseStroke != null) {
PAYLoginHeaddefault.revealToast(translates != null ? translates.getGleestream_googlepay_success() : getString(R.string.google_pay_success), 0);
seenMarkView.getUserInfo();
@ -771,6 +776,16 @@ public class UBJPrivateOllowFragment extends Fragment {
}
@Override
public void onPause() {
super.onPause();
LogUtils.d("yyyy");
if (vipPurchaseDialog != null && vipPurchaseDialog.isShowing()) {
zytGooglePayUtils.clearInstance();
vipPurchaseDialog.dismiss();
vipPurchaseDialog = null;
}
}
@Override
public void onDestroy() {