Leon vor 1 Jahr
Ursprung
Commit
3f4cc74f6a
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      src/_health/pages/post_result.tsx
  2. 2 2
      src/services/http/api.js

+ 1 - 1
src/_health/pages/post_result.tsx

@@ -92,7 +92,7 @@ export default function PostResult() {
                 title = t('health.share_my_fast_sleep')
                 defaultImg = SHARE_COVER_URL + 'my_fast_with_sleep.jpg'
             }
-            var imgs = []//imgList()
+            var imgs = data.images??[]//imgList()
             var imageUrl = imgs.length > 0 ? imgs[0] : defaultImg
             var type = ''
             if (data.window_id) {

+ 2 - 2
src/services/http/api.js

@@ -1,9 +1,9 @@
-const online = process.env.TARO_ENV == 'weapp' ? true : false;
+const online = process.env.TARO_ENV == 'weapp' ? false : false;
 
 import { WX_VERSION as _WX_VERSION, APP_VERSION as _APP_VERSION, ANDROID_VERSION as _ANDROID_VERSION } from "../../../config/env";
 
 // export const baseUrl = online ? 'https://api.fast.liveplus.fun' : 'https://api.fast.dev.liveplus.fun';
-export const baseUrl = online ? process.env.TARO_ENV == 'rn' ? 'https://api.app.fast.liveplus.fun' : 'https://api.fast.liveplus.fun' : 'https://api.pre.fast.liveplus.fun'//'https://api.fast.dev.liveplus.fun';//'https://api.fast.dev.liveplus.fun';
+export const baseUrl = online ? process.env.TARO_ENV == 'rn' ? 'https://api.app.fast.liveplus.fun' : 'https://api.fast.liveplus.fun' : 'https://api.fast.dev.liveplus.fun';//'https://api.pre.fast.liveplus.fun'//'https://api.fast.dev.liveplus.fun';
 
 export const APP_VERSION = _APP_VERSION
 export const WX_VERSION = _WX_VERSION