修改上传图片安全验证问题
This commit is contained in:
@@ -235,7 +235,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
|
||||
if (isActive) {
|
||||
getLocation().catch((error) => {
|
||||
console.error('获取位置信息失败:', error);
|
||||
console.warn('获取位置信息失败:', error);
|
||||
});
|
||||
}
|
||||
}, [isActive, showHomeQrcode]);
|
||||
@@ -309,7 +309,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
lastLoadedAreaRef.current = [...currentArea] as [string, string];
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("重新加载数据失败:", error);
|
||||
console.warn("重新加载数据失败:", error);
|
||||
}
|
||||
}, delayMs);
|
||||
prevIsActiveRef.current = isActive;
|
||||
@@ -375,7 +375,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
await updateUserLocation(location.latitude, location.longitude, isFirstCall);
|
||||
hasUpdatedLocationRef.current = true;
|
||||
} catch (error) {
|
||||
console.error("更新用户位置失败:", error);
|
||||
console.warn("更新用户位置失败:", error);
|
||||
}
|
||||
}
|
||||
// 先调用列表接口
|
||||
@@ -462,7 +462,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
await getMatchesData();
|
||||
await fetchGetGamesCount();
|
||||
} catch (error) {
|
||||
console.error("刷新列表失败:", error);
|
||||
console.warn("刷新列表失败:", error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -477,7 +477,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
const { fetchDictionary } = useDictionaryStore.getState();
|
||||
await fetchDictionary();
|
||||
} catch (error) {
|
||||
console.error("初始化字典数据失败:", error);
|
||||
console.warn("初始化字典数据失败:", error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -616,7 +616,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
try {
|
||||
await loadMoreMatches();
|
||||
} catch (error) {
|
||||
console.error("加载更多失败:", error);
|
||||
console.warn("加载更多失败:", error);
|
||||
} finally {
|
||||
loadingMoreRef.current = false;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ const MyselfPageContent: React.FC<MyselfPageContentProps> = ({
|
||||
set_game_records(notEndGames);
|
||||
setEndedGameRecords(finishedGames);
|
||||
} catch (error) {
|
||||
console.error("加载球局数据失败:", error);
|
||||
console.warn("加载球局数据失败:", error);
|
||||
}
|
||||
}, [active_tab, user_info, classifyGameRecords]);
|
||||
|
||||
@@ -150,7 +150,7 @@ const MyselfPageContent: React.FC<MyselfPageContentProps> = ({
|
||||
duration: 1500,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("关注操作失败:", error);
|
||||
console.warn("关注操作失败:", error);
|
||||
(Taro as any).showToast({
|
||||
title: "操作失败,请重试",
|
||||
icon: "error",
|
||||
@@ -198,7 +198,7 @@ const MyselfPageContent: React.FC<MyselfPageContentProps> = ({
|
||||
try {
|
||||
await Promise.all([fetchUserInfo(), load_game_data()]);
|
||||
} catch (error) {
|
||||
console.error("刷新失败:", error);
|
||||
console.warn("刷新失败:", error);
|
||||
(Taro as any).showToast({
|
||||
title: "刷新失败,请重试",
|
||||
icon: "none",
|
||||
|
||||
@@ -68,7 +68,7 @@ const MainPage: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("微信授权异常:", error);
|
||||
console.warn("微信授权异常:", error);
|
||||
setAuthErrorMessage("微信授权失败,请重试");
|
||||
setShowAuthError(true);
|
||||
return;
|
||||
@@ -81,7 +81,7 @@ const MainPage: React.FC = () => {
|
||||
await fetchUserInfo();
|
||||
await checkNicknameChangeStatus();
|
||||
} catch (error) {
|
||||
console.error("获取用户信息失败:", error);
|
||||
console.warn("获取用户信息失败:", error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user