|
|
@@ -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));
|