diff --git a/publish/changeLog.md b/publish/changeLog.md index e60f2ec..38fa902 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,5 +1,5 @@ 目前本项目的原始发布地址只有 **GitHub** 及 **蓝奏网盘** (在设置-关于有说明),其他渠道均为第三方转载发布,可信度请自行鉴别。 -本项目无微信公众号之类的官方账号,也未在小米、华为、vivo等应用商店发布应用,商店内的“洛雪音乐xx”相关的应用属于假冒应用,谨防被骗。 +本项目无微信公众号之类的官方账号,也未在小米、华为、vivo等应用商店发布应用,商店内的“LX Music”、“洛雪音乐”相关的应用全部属于假冒应用,谨防被骗。 本软件完全无广告且无引流(如需要加群、关注公众号之类才能使用或者升级)的行为,若你使用过程中遇到广告或者引流的信息,则表明你当前运行的软件是第三方修改版。 若在升级新版本时提示签名不一致,则表明你手机上的旧版本或者将要安装的新版本中有一方是第三方修改版。 若在升级新版本时提示无法降级安装,则表明你使用的是universal(通用)版安装包(安装包大小20M+),尝试使用arm64-v8a版安装包或者到GitHub下载其他版本安装包。 diff --git a/src/app.ts b/src/app.ts index cc3829f..409e3b6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -9,7 +9,7 @@ import { exitApp } from './utils/nativeModules/utils' console.log('starting app...') let isInited = false -let handlePushedHomeScreen: () => void +let handlePushedHomeScreen: () => void | Promise const tryGetBootLog = () => { try { @@ -49,7 +49,7 @@ initNavigation(async() => { // import('@/utils/nativeModules/cryptoTest') await navigations.pushHomeScreen().then(() => { - handlePushedHomeScreen() + void handlePushedHomeScreen() }).catch((err: any) => { Alert.alert('Error', err.message, [ { diff --git a/src/core/init/index.ts b/src/core/init/index.ts index 37aa27b..9c3da05 100644 --- a/src/core/init/index.ts +++ b/src/core/init/index.ts @@ -11,9 +11,11 @@ import commonActions from '@/store/common/action' import settingState from '@/store/setting/state' import { checkUpdate } from '@/core/version' import { bootLog } from '@/utils/bootLog' +import { cheatTip } from '@/utils/tools' let isFirstPush = true -const handlePushedHomeScreen = () => { +const handlePushedHomeScreen = async() => { + await cheatTip() if (settingState.setting['common.isAgreePact']) { if (isFirstPush) { isFirstPush = false diff --git a/src/utils/tools.ts b/src/utils/tools.ts index b3f7c8d..189aba3 100644 --- a/src/utils/tools.ts +++ b/src/utils/tools.ts @@ -442,3 +442,25 @@ export const getRowInfo = (type: RowInfoType = 'full'): RowInfo => { } export const toMD5 = stringMd5 + + +export const cheatTip = async() => { + const isRead = await getData(storageDataPrefix.cheatTip) + if (isRead) return + + return new Promise((resolve) => { + Alert.alert( + '谨防被骗提示', + `1. 本项目无微信公众号之类的官方账号,也未在小米、华为、vivo等应用商店发布应用,商店内的“LX Music”、“洛雪音乐”相关的应用全部属于假冒应用,谨防被骗。 +2. 本软件完全无广告且无引流(如需要加群、关注公众号之类才能使用或者升级)的行为,若你使用过程中遇到广告或者引流的信息,则表明你当前运行的软件是第三方修改版。 +3. 目前本项目的原始发布地址只有 GitHub 及 蓝奏网盘 (在设置-关于有说明),其他渠道均为第三方转载发布,可信度请自行鉴别。`, + [{ + text: '我知道了 (Close)', + onPress: () => { + void saveData(storageDataPrefix.cheatTip, true) + resolve() + }, + }], + ) + }) +}