为了抖音过审,删除更新弹窗
This commit is contained in:
parent
26e634841e
commit
b207931ba9
47
App.jsx
47
App.jsx
|
@ -35,11 +35,10 @@ import Setting from "./screeens/Setting";
|
||||||
import WechatWaitingToAdd from "./screeens/WechatWaitingToAdd";
|
import WechatWaitingToAdd from "./screeens/WechatWaitingToAdd";
|
||||||
import Search from "./screeens/Search";
|
import Search from "./screeens/Search";
|
||||||
import WebWithHeader from "./screeens/WebWithHeader";
|
import WebWithHeader from "./screeens/WebWithHeader";
|
||||||
import UpdateModal from "./components/UpdateModal";
|
// import UpdateModal from "./components/UpdateModal";
|
||||||
import StreamerNavigatorModal from "./components/StreamerNavigatorModal";
|
import StreamerNavigatorModal from "./components/StreamerNavigatorModal";
|
||||||
import { Icon } from "@rneui/themed";
|
import { Icon } from "@rneui/themed";
|
||||||
import { StatusBar } from "expo-status-bar";
|
import { StatusBar } from "expo-status-bar";
|
||||||
import { save, get, remove } from "./utils/storeInfo";
|
|
||||||
import baseRequest from "./utils/baseRequest";
|
import baseRequest from "./utils/baseRequest";
|
||||||
import { generateSignature } from "./utils/crypto";
|
import { generateSignature } from "./utils/crypto";
|
||||||
import * as Clipboard from "expo-clipboard";
|
import * as Clipboard from "expo-clipboard";
|
||||||
|
@ -164,26 +163,26 @@ export default function App() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//检查更新
|
//检查更新
|
||||||
const checkUpdataResponse = await fetch(
|
// const checkUpdataResponse = await fetch(
|
||||||
`${apiUrl}/api/version/is_there_a_new_version_available?signature=${signature}`,
|
// `${apiUrl}/api/version/is_there_a_new_version_available?signature=${signature}`,
|
||||||
{
|
// {
|
||||||
method: "POST",
|
// method: "POST",
|
||||||
headers: {
|
// headers: {
|
||||||
"Content-Type": "application/json",
|
// "Content-Type": "application/json",
|
||||||
},
|
// },
|
||||||
body: JSON.stringify({
|
// body: JSON.stringify({
|
||||||
...base,
|
// ...base,
|
||||||
}),
|
// }),
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
const checkUpdataData = await checkUpdataResponse.json();
|
// const checkUpdataData = await checkUpdataResponse.json();
|
||||||
if (checkUpdataData.ret === -1) {
|
// if (checkUpdataData.ret === -1) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
if (checkUpdataData.data.result) {
|
// if (checkUpdataData.data.result) {
|
||||||
setIsUpdateModalVisible(true);
|
// setIsUpdateModalVisible(true);
|
||||||
setVersionData(checkUpdataData.data);
|
// setVersionData(checkUpdataData.data);
|
||||||
}
|
// }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -576,11 +575,11 @@ export default function App() {
|
||||||
</NavigationContainer>
|
</NavigationContainer>
|
||||||
</View>
|
</View>
|
||||||
<Toast />
|
<Toast />
|
||||||
<UpdateModal
|
{/* <UpdateModal
|
||||||
visible={isUpdateModalVisible}
|
visible={isUpdateModalVisible}
|
||||||
setVisible={setIsUpdateModalVisible}
|
setVisible={setIsUpdateModalVisible}
|
||||||
data={versionData}
|
data={versionData}
|
||||||
/>
|
/> */}
|
||||||
</SafeAreaProvider>
|
</SafeAreaProvider>
|
||||||
</AuthContext.Provider>
|
</AuthContext.Provider>
|
||||||
</TailwindProvider>
|
</TailwindProvider>
|
||||||
|
|
2
app.json
2
app.json
|
@ -2,7 +2,7 @@
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "铁粉空间",
|
"name": "铁粉空间",
|
||||||
"slug": "ironfans",
|
"slug": "ironfans",
|
||||||
"version": "1.1.8",
|
"version": "1.1.9",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/icon.png",
|
"icon": "./assets/icon.png",
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|
Loading…
Reference in New Issue