diff --git a/components/LoginModal.tsx b/components/LoginModal.tsx index 4802b2f..fa9cf1e 100644 --- a/components/LoginModal.tsx +++ b/components/LoginModal.tsx @@ -1,5 +1,5 @@ import React, { useState, useRef, useEffect } from "react"; -import { Modal, View, TextInput, StyleSheet, ActivityIndicator } from "react-native"; +import { Modal, View, TextInput, StyleSheet, ActivityIndicator, Alert } from "react-native"; import { usePathname } from "expo-router"; import Toast from "react-native-toast-message"; import useAuthStore from "@/stores/authStore"; @@ -55,6 +55,13 @@ const LoginModal = () => { hideLoginModal(); setUsername(""); setPassword(""); + + // Show disclaimer alert after successful login + Alert.alert( + "免责声明", + "本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。", + [{ text: "确定" }] + ); } catch { Toast.show({ type: "error", text1: "登录失败", text2: "用户名或密码错误" }); } finally { diff --git a/stores/authStore.ts b/stores/authStore.ts index c971efa..4efa4c7 100644 --- a/stores/authStore.ts +++ b/stores/authStore.ts @@ -26,7 +26,7 @@ const useAuthStore = create((set) => ({ try { const serverConfig = useSettingsStore.getState().serverConfig; if (!serverConfig?.StorageType) { - Toast.show({ type: "error", text1: "请检查网络或者 API 地址是否可用" }); + Toast.show({ type: "error", text1: "请检查网络或者服务器地址是否可用" }); return } const cookies = await Cookies.get(api.baseURL);