Leon 1 년 전
부모
커밋
d9478a6835
3개의 변경된 파일15개의 추가작업 그리고 10개의 파일을 삭제
  1. 13 8
      src/features/trackTimeDuration/components/DayNightCard.tsx
  2. 1 1
      src/pages/account/Setting.tsx
  3. 1 1
      src/pages/clock/Clock.tsx

+ 13 - 8
src/features/trackTimeDuration/components/DayNightCard.tsx

@@ -478,14 +478,19 @@ export default function DayNightCard(props: { isNight: boolean, count: number })
 
     function getLocation() {
         var city = ''
-        if ((authInfo as any).address.city.length > 0) {
-            city = (authInfo as any).address.city
-        }
-        else if ((authInfo as any).address.province.length > 0) {
-            city = (authInfo as any).address.province
-        }
-        else if ((authInfo as any).address.country.length > 0) {
-            city = (authInfo as any).address.country
+        if ((authInfo as any).address){
+            if ((authInfo as any).address.city.length > 0) {
+                city = (authInfo as any).address.city
+            }
+            else if ((authInfo as any).address.province.length > 0) {
+                city = (authInfo as any).address.province
+            }
+            else if ((authInfo as any).address.country.length > 0) {
+                city = (authInfo as any).address.country
+            }
+            else {
+                city = t('feature.track_time_duration.third_ring.unknown')
+            }
         }
         else {
             city = t('feature.track_time_duration.third_ring.unknown')

+ 1 - 1
src/pages/account/Setting.tsx

@@ -65,7 +65,7 @@ export default function Page() {
 
     return <View style={{ color: '#fff', display: 'flex', flexDirection: 'column', flex: 1 }}>
         <View style={{ height: 20 }} />
-        <TableCell title={t('page.setting.version')} ><Text style={{ opacity: 0.8, color: '#fff' }}>{process.env.TARO_ENV == 'weapp'?'1.3.7':'1.3.3'}</Text></TableCell>
+        <TableCell title={t('page.setting.version')} ><Text style={{ opacity: 0.8, color: '#fff' }}>{process.env.TARO_ENV == 'weapp'?'1.3.8':'1.3.3'}</Text></TableCell>
         {/* <Text style={{color:'#9E9E9E',textAlign:'center',fontSize:14}}>v1.2.2</Text> */}
         {
             process.env.TARO_ENV == 'rn' && <View style={{ flex: 1 }} />

+ 1 - 1
src/pages/clock/Clock.tsx

@@ -270,7 +270,7 @@ export default function Page() {
         clientInfo({
             client: {
                 client_type: process.env.TARO_ENV == 'weapp' ? 'MP' : 'APP',
-                client_version: process.env.TARO_ENV == 'weapp' ? '1.3.7' : '1.0',//Taro.getAccountInfoSync().miniProgram.version : '1.0',//'1.0'
+                client_version: process.env.TARO_ENV == 'weapp' ? '1.3.8' : '1.0',//Taro.getAccountInfoSync().miniProgram.version : '1.0',//'1.0'
                 wx_version: process.env.TARO_ENV == 'weapp' ? systemInfo.version : '_'
             },
             meta: {