欢迎页优化

This commit is contained in:
2022-09-07 15:21:23 +08:00
parent 377be1b7c7
commit 2b44a4e262
3 changed files with 34 additions and 3 deletions
@@ -9,6 +9,8 @@ import com.dahe.mylibrary.utils.BaseSPUtils;
public class SPUtils extends BaseSPUtils {
private static final String PRE_WEL_PIC = "PRE_WEL_PIC";
/**
* 存用户信息
*
@@ -111,4 +113,22 @@ public class SPUtils extends BaseSPUtils {
return b;
}
/**
* 保存欢迎页网络地址
* @param context
* @param url
*/
public static void setPreWelPic(Context context, String url){
put(context,PRE_WEL_PIC,url);
}
/**
* 获取欢迎页地址
* @param context
* @return
*/
public static String getPreWelPic(Context context){
return (String) get(context,PRE_WEL_PIC,"");
}
}