Commit 480476cb authored by William Goszal's avatar William Goszal 🚴
parent 1058349f
...@@ -4,7 +4,7 @@ import { Alert } from 'react-native'; ...@@ -4,7 +4,7 @@ import { Alert } from 'react-native';
export default function CheckVersion(navigation) { export default function CheckVersion(navigation) {
let version = Constants.manifest.version let version = Constants.manifest.version
Axios.get('https://excelsocrm2.ravintolasky.com/cms/v2/detail/apps-version').then(respon => { Axios.get('https://excelso.ravintolavip.com/cms/v2/detail/apps-version').then(respon => {
let version_server = respon.data.content5 let version_server = respon.data.content5
let msg_res = respon.data.content6 let msg_res = respon.data.content6
if (version_server !== version) { if (version_server !== version) {
......
...@@ -44,7 +44,7 @@ import * as Device from 'expo-device'; ...@@ -44,7 +44,7 @@ import * as Device from 'expo-device';
session_id: this.props.session_id session_id: this.props.session_id
} }
Axios.post("https://excelsocrm2.ravintolasky.com/crm/v2/outlet/get_list", params).then(res => { Axios.post("https://excelso.ravintolavip.com/crm/v2/outlet/get_list", params).then(res => {
let dataOutlets = res.data.outlets; let dataOutlets = res.data.outlets;
for (let i = 0; i < dataOutlets.length; i++) { for (let i = 0; i < dataOutlets.length; i++) {
dataOutlets[i]['distance'] = this.distance(dataOutlets[i]['lat'], dataOutlets[i]['long']); dataOutlets[i]['distance'] = this.distance(dataOutlets[i]['lat'], dataOutlets[i]['long']);
......
// export const BASE_URL_LOGIN = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/login'; // export const BASE_URL_LOGIN = 'https://excelso.ravintolavip.com/crm/v2/auth/login';
// export const BASE_URL_REGISTER = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/register'; // export const BASE_URL_REGISTER = 'https://excelso.ravintolavip.com/crm/v2/auth/register';
// export const BASE_URL_REGISTER_CONFIRM ='https://excelsocrm2.ravintolasky.com/crm/v2/auth/register_confirm'; // export const BASE_URL_REGISTER_CONFIRM ='https://excelso.ravintolavip.com/crm/v2/auth/register_confirm';
// export const BASE_URL_GET_ENUM = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/register_get_enum'; // export const BASE_URL_GET_ENUM = 'https://excelso.ravintolavip.com/crm/v2/auth/register_get_enum';
// export const BASE_URL_GET_CARAOUSEL = 'https://excelsocrm2.ravintolasky.com/cms/v2/list/promotions-carousel'; // export const BASE_URL_GET_CARAOUSEL = 'https://excelso.ravintolavip.com/cms/v2/list/promotions-carousel';
// export const BASE_URL_RESET_PASSWORD = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/forgot_password'; // export const BASE_URL_RESET_PASSWORD = 'https://excelso.ravintolavip.com/crm/v2/auth/forgot_password';
// export const BASE_URL_CHANGE_PASSWORD = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/change_password'; // export const BASE_URL_CHANGE_PASSWORD = 'https://excelso.ravintolavip.com/crm/v2/auth/change_password';
export const BASE_URL_NEW_PASSWORD = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/reset_password'; export const BASE_URL_NEW_PASSWORD = 'https://excelso.ravintolavip.com/crm/v2/auth/reset_password';
\ No newline at end of file \ No newline at end of file
...@@ -93,7 +93,7 @@ const globalState = { ...@@ -93,7 +93,7 @@ const globalState = {
card_number: "", card_number: "",
BASE_URL: 'https://excelsocrm2.ravintolasky.com/', BASE_URL: 'https://excelso.ravintolavip.com/',
kaspro_account_number: '', kaspro_account_number: '',
is_expired_date: true, is_expired_date: true,
......
...@@ -18,7 +18,7 @@ class setBaseUrl extends React.Component { ...@@ -18,7 +18,7 @@ class setBaseUrl extends React.Component {
if (this.state.base_url == '') { if (this.state.base_url == '') {
let setUrls = { let setUrls = {
BASE_URL:'https://excelsocrm2.ravintolasky.com/' BASE_URL:'https://excelso.ravintolavip.com/'
} }
this.props.setUrlProps(setUrls); this.props.setUrlProps(setUrls);
Alert.alert('','Base Url di setting ke default'); Alert.alert('','Base Url di setting ke default');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment