Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
clone_excelso
Commits
480476cb
Commit
480476cb
authored
Aug 21, 2020
by
William Goszal
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update base_url ke
https://excelso.ravintolavip.com
parent
1058349f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
CheckVersion.js
function/CheckVersion.js
+1
-1
getLocation.js
function/getLocation.js
+1
-1
Base_Model.js
model/Base_Model.js
+8
-8
globalReducer.js
redux/globalReducer.js
+1
-1
setBaseUrl.js
view/setBaseUrl.js
+1
-1
No files found.
function/CheckVersion.js
View file @
480476cb
...
...
@@ -4,7 +4,7 @@ import { Alert } from 'react-native';
export
default
function
CheckVersion
(
navigation
)
{
let
version
=
Constants
.
manifest
.
version
Axios
.
get
(
'https://excelso
crm2.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
msg_res
=
respon
.
data
.
content6
if
(
version_server
!==
version
)
{
...
...
function/getLocation.js
View file @
480476cb
...
...
@@ -44,7 +44,7 @@ import * as Device from 'expo-device';
session_id
:
this
.
props
.
session_id
}
Axios
.
post
(
"https://excelso
crm2.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
;
for
(
let
i
=
0
;
i
<
dataOutlets
.
length
;
i
++
)
{
dataOutlets
[
i
][
'distance'
]
=
this
.
distance
(
dataOutlets
[
i
][
'lat'
],
dataOutlets
[
i
][
'long'
]);
...
...
model/Base_Model.js
View file @
480476cb
// export const BASE_URL_LOGIN = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/login';
// export const BASE_URL_REGISTER = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/register';
// export const BASE_URL_REGISTER_CONFIRM ='https://excelsocrm2.ravintolasky.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_CARAOUSEL = 'https://excelsocrm2.ravintolasky.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_CHANGE_PASSWORD = 'https://excelsocrm2.ravintolasky.com/crm/v2/auth/change_password';
export
const
BASE_URL_NEW_PASSWORD
=
'https://excelsocrm2.ravintolasky.com/crm/v2/auth/reset_password'
;
\ No newline at end of file
// export const BASE_URL_LOGIN = 'https://excelso.ravintolavip.com/crm/v2/auth/login';
// export const BASE_URL_REGISTER = 'https://excelso.ravintolavip.com/crm/v2/auth/register';
// export const BASE_URL_REGISTER_CONFIRM ='https://excelso.ravintolavip.com/crm/v2/auth/register_confirm';
// export const BASE_URL_GET_ENUM = 'https://excelso.ravintolavip.com/crm/v2/auth/register_get_enum';
// export const BASE_URL_GET_CARAOUSEL = 'https://excelso.ravintolavip.com/cms/v2/list/promotions-carousel';
// export const BASE_URL_RESET_PASSWORD = 'https://excelso.ravintolavip.com/crm/v2/auth/forgot_password';
// export const BASE_URL_CHANGE_PASSWORD = 'https://excelso.ravintolavip.com/crm/v2/auth/change_password';
export
const
BASE_URL_NEW_PASSWORD
=
'https://excelso.ravintolavip.com/crm/v2/auth/reset_password'
;
\ No newline at end of file
redux/globalReducer.js
View file @
480476cb
...
...
@@ -93,7 +93,7 @@ const globalState = {
card_number
:
""
,
BASE_URL
:
'https://excelso
crm2.ravintolasky
.com/'
,
BASE_URL
:
'https://excelso
.ravintolavip
.com/'
,
kaspro_account_number
:
''
,
is_expired_date
:
true
,
...
...
view/setBaseUrl.js
View file @
480476cb
...
...
@@ -18,7 +18,7 @@ class setBaseUrl extends React.Component {
if
(
this
.
state
.
base_url
==
''
)
{
let
setUrls
=
{
BASE_URL
:
'https://excelso
crm2.ravintolasky
.com/'
BASE_URL
:
'https://excelso
.ravintolavip
.com/'
}
this
.
props
.
setUrlProps
(
setUrls
);
Alert
.
alert
(
''
,
'Base Url di setting ke default'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment