| | |
| | | editor.putString("invite_code_apply", obj.optString("value")); |
| | | } else if (obj.optString("key").equalsIgnoreCase("onlining")) {//企业微信客服链接 |
| | | editor.putString("onlining", obj.optString("value")); |
| | | } else if (obj.optString("key").equalsIgnoreCase("home_page_bg_colors")) {//首页背景颜色 |
| | | editor.putString("home_page_bg_colors", obj.optString("value")); |
| | | } |
| | | } |
| | | editor.commit(); |
| | |
| | | return sp.getString(key, ""); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取首页背景颜色 |
| | | * |
| | | * @param context |
| | | * @return |
| | | */ |
| | | public static String getHomePageBgColors(Context context) { |
| | | return getParam(context, "home_page_bg_colors"); |
| | | } |
| | | |
| | | /** |
| | | * 获取帮助中心链接 |
| | | * |
| | | * @param context |
| | | * @return |
| | | */ |
| | | public static String getHelpUrl(Context context) { |
| | | return getParam(context, "help"); |
| | | } |
| | | |
| | | /** |
| | | * 获取新手教程 |
| | | * |
| | | * @param context |
| | | * @return |
| | | */ |
| | | public static String getNewerCourse(Context context) { |
| | | return getParam(context, "web_newer"); |
| | | } |
| | | |
| | | } |