diff --git a/components/Settings/SettingTopPage.js b/components/Settings/SettingTopPage.js index 1f9ecf9..ecd24d4 100644 --- a/components/Settings/SettingTopPage.js +++ b/components/Settings/SettingTopPage.js @@ -12,7 +12,7 @@ import * as Updates from "expo-updates"; import { useWindowDimensions } from "react-native"; import { ListItem } from "native-base"; -const versionCode = 5.1; +const versionCode = "5.1.1"; export const SettingTopPage = ({ navigate, testNFC, updateAndReload }) => { const { width } = useWindowDimensions(); diff --git a/stateBox/useAllTrainDiagram.js b/stateBox/useAllTrainDiagram.js index 912aa37..a792222 100644 --- a/stateBox/useAllTrainDiagram.js +++ b/stateBox/useAllTrainDiagram.js @@ -15,12 +15,11 @@ export const AllTrainDiagramProvider = ({ children }) => { const customData = {}; useEffect(() => { fetch( - "http://n8n.haruk.in/webhook/CrowdTh%E2%82%AC71m3Ra7!ngLead%E2%82%ACr$" + "https://n8n.haruk.in/webhook/CrowdTh%E2%82%AC71m3Ra7!ngLead%E2%82%ACr$" ) .then((res) => res.json()) .then((res) => res.data) .then((res) => { - console.log(res); const data = {}; res.forEach((d) => { const keys = Object.keys(d); @@ -33,7 +32,8 @@ export const AllTrainDiagramProvider = ({ children }) => { setAllTrainDiagram(res); }) .catch((d) => { - alert("error"); + alert("allTrainDiagram取得エラー/再取得します"); + alert(d); fetch( "https://script.google.com/macros/s/AKfycbx_s7RB-xTy-iAslFJg7LfplLV09-hjDXEjdi9kCP_JT45wq17Af_IPOKIOqIfaNDg/exec" ) diff --git a/stateBox/useCurrentTrain.js b/stateBox/useCurrentTrain.js index adeb371..7a96cfb 100644 --- a/stateBox/useCurrentTrain.js +++ b/stateBox/useCurrentTrain.js @@ -38,6 +38,7 @@ export const CurrentTrainProvider = ({ children }) => { setCurrentTrainLoading("success"); }) .catch(() => { + alert("現在の全在線列車取得エラー/再取得します"); fetch( "https://script.google.com/macros/s/AKfycby9Y2-Bm75J_WkbZimi7iS8v5r9wMa9wtzpdwES9sOGF4i6HIYEJOM60W6gM1gXzt1o/exec", HeaderConfig