diff --git a/app/(tabs)/top.tsx b/app/(tabs)/top.tsx
index e1bf4a0..8916bde 100644
--- a/app/(tabs)/top.tsx
+++ b/app/(tabs)/top.tsx
@@ -175,7 +175,7 @@ export default function OwnerPage() {
Top Memory Makers
- 123
+ 123
{ setLocationModalVisible(true) }} style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 8 }}>
diff --git a/components/download/app.tsx b/components/download/app.tsx
index aa9f586..400a17b 100644
--- a/components/download/app.tsx
+++ b/components/download/app.tsx
@@ -79,7 +79,7 @@ const styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
padding: 16,
- borderRadius: 12,
+ borderRadius: 24,
zIndex: 2,
backgroundColor: '#fff',
},
diff --git a/components/owner/utils.ts b/components/owner/utils.ts
index 626610e..7059c42 100644
--- a/components/owner/utils.ts
+++ b/components/owner/utils.ts
@@ -27,16 +27,17 @@ Notifications.setNotificationHandler({
export const reverseGeocode = async (latitude: number, longitude: number) => {
try {
const addressResults = await fetchApi(`/area/gecoding?latitude=${latitude}&longitude=${longitude}`);
- console.log('地址:', addressResults);
- for (let address of addressResults) {
- console.log('地址:', address);
- if (Platform.OS === 'web') {
- localStorage.setItem('location', JSON.stringify(address));
- } else {
- SecureStore.setItemAsync('location', JSON.stringify(address));
- }
- return address;
+ if (Object.keys(addressResults).length === 0) {
+ return null;
}
+ console.log('地址1:', addressResults);
+
+ if (Platform.OS === 'web') {
+ localStorage.setItem('location', JSON.stringify(addressResults));
+ } else {
+ SecureStore.setItemAsync('location', JSON.stringify(addressResults));
+ }
+ return addressResults
} catch (error) {
console.log('逆地理编码失败:', error);
}