Leon 1 tahun lalu
induk
melakukan
b28f88dac5

File diff ditekan karena terlalu besar
+ 0 - 0
android/app/src/main/assets/index.android.bundle


File diff ditekan karena terlalu besar
+ 0 - 0
android/app/src/main/assets/index.android.map


+ 4 - 2
src/app/time_of_day/services/net.tsx

@@ -1,5 +1,7 @@
 import { request } from "@/services/http/request"
-const baseUrl = 'https://api.fast.dev.liveplus.fun'
+
+const isOnLine = true
+const baseUrl = isOnLine?'https://api.app.fast.liveplus.fun':'https://api.fast.dev.liveplus.fun'
 const API_LOGIN_ANONYMOUS = `${baseUrl}/api/user/login/anonymous`
 const API_PLACE = `${baseUrl}/api/time/place`
 
@@ -20,7 +22,7 @@ export const loginAnonymous = (uuid: string) => {
 export const place = (lat: string, lng: string, method: string) => {
     return new Promise((resolve, reject) => {
         request({
-            url: API_PLACE, method: 'GET', data: { lat, lng, timestamp: new Date().getTime(), log_method: method }
+            url: API_PLACE, method: 'GET', data: { lat, lng, timestamp: new Date().getTime(), log_method: method,coordinate_system_standard: 'WGS-84' }
         }).then(res => {
             resolve(res)
             // dispatch(loginSuccess(res));

+ 2 - 0
src/services/http/request.ts

@@ -10,6 +10,7 @@ import showAlert from "@/components/basic/Alert";
 
 const utc = require('dayjs/plugin/utc')
 const timezone = require('dayjs/plugin/timezone')
+const PROJECT_NAME = 'TIME' //FAST
 
 dayjs.extend(utc)
 dayjs.extend(timezone)
@@ -73,6 +74,7 @@ export async function request<T>(param: RequestParam): Promise<T> {
         // var timeZoneLocation = Intl.DateTimeFormat().resolvedOptions().timeZone
 
         header['content-type'] = 'application/json'
+        header['X-Project'] = process.env.TARO_ENV == 'rn' && kIsAndroid?'TIME':'FAST'
 
         header['X-Timezone'] = encodeURIComponent(JSON.stringify({
             id: getTimezoneId(),

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini