From 2eec3de87b6b616a69a46c1f97c2397159031d2f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 21 十一月 2023 18:01:43 +0800
Subject: [PATCH] 广告升级/bug修复

---
 BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
index 5436446..58cbdff 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ConfigUtil.java
@@ -108,6 +108,49 @@
     }
 
 
+    /**
+     * 淇濆瓨璐拱璁板綍
+     *
+     * @param context
+     * @param content
+     */
+    public static void saveBuyRecordUrl(Context context, String content) {
+        saveConfig("buyRecordUrl", content, context);
+    }
+
+
+    public static String getBuyRecordUrl(Context context) {
+        return getConfig("buyRecordUrl", context);
+    }
+
+
+    public static void saveOnLining(Context context, boolean content) {
+        saveConfig("onLining", content+"", context);
+    }
+
+
+    public static boolean isOnLining(Context context) {
+        String onLine= getConfig("onLining", context);
+        if(StringUtils.isEmpty(onLine)){
+            return false;
+        }
+        return Boolean.parseBoolean(onLine);
+    }
+
+
+    public static void saveAiDaoMode(Context context, boolean content) {
+        saveConfig("aiDaoMode", content+"", context);
+    }
+
+    public static boolean isAiDaoMode(Context context){
+        String onLine= getConfig("aiDaoMode", context);
+        if(StringUtils.isEmpty(onLine)){
+            return false;
+        }
+        return Boolean.parseBoolean(onLine);
+    }
+
+
     private static void saveConfig(String key, String value, Context context) {
         SharedPreferences.Editor editor = context.getSharedPreferences("config", Context.MODE_PRIVATE).edit();
         editor.putString(key, value);

--
Gitblit v1.8.0