Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
Project
Overview
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
Jansa Jose
joyride phase2
Commits
2d9494e6
Commit
2d9494e6
authored
Dec 07, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
round trip
parent
2bc648ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Webservices.php
application/controllers/Webservices.php
+8
-3
Webservice_model.php
application/models/Webservice_model.php
+1
-1
No files found.
application/controllers/Webservices.php
View file @
2d9494e6
...
@@ -555,7 +555,12 @@
...
@@ -555,7 +555,12 @@
$data
=
array
(
$result
);
$data
=
array
(
$result
);
$check
=
''
;
$check
=
''
;
if
(
$result
){
if
(
$result
){
$response
=
array
(
'status'
=>
'success'
,
'message'
=>
''
,
'data'
=>
$data
,
'check'
=>
$check
,
'km_price'
=>
$kmcharge
);
if
(
$request
[
'round_trip'
]
!=
0
){
$char
=
$kmcharge
*
2
;
}
else
{
$char
=
$kmcharge
}
$response
=
array
(
'status'
=>
'success'
,
'message'
=>
''
,
'data'
=>
$data
,
'check'
=>
$check
,
'km_price'
=>
$char
);
}
else
{
}
else
{
$response
=
array
(
'status'
=>
'error'
,
'message'
=>
'Error Occured'
,
'data'
=>
''
);
$response
=
array
(
'status'
=>
'error'
,
'message'
=>
'Error Occured'
,
'data'
=>
''
);
}
}
...
@@ -1400,7 +1405,7 @@
...
@@ -1400,7 +1405,7 @@
$fields
=
array
(
$fields
=
array
(
'app_id'
=>
"
7c692b68-a71f-4c8d-b639-635e9dc4b7de
"
,
'app_id'
=>
"
441ec57a-ee0b-44d5-be11-37ccd442c807
"
,
'data'
=>
array
(
"type"
=>
"ride alert"
,
'data'
=>
array
(
"type"
=>
"ride alert"
,
"result"
=>
(
isset
(
$result
)
&&
!
empty
(
$result
))
?
$result
:
''
,
"result"
=>
(
isset
(
$result
)
&&
!
empty
(
$result
))
?
$result
:
''
,
...
@@ -2473,7 +2478,7 @@
...
@@ -2473,7 +2478,7 @@
"en"
=>
'Ride'
"en"
=>
'Ride'
);
);
$type
=
'ride_approve_alert'
;
$type
=
'ride_approve_alert'
;
$include_player_ids
=
array
(
isset
(
$res
->
device_id
)
&&
!
empty
(
$res
->
device_id
)
?
$res
->
device
_id
:
''
);
$include_player_ids
=
array
(
isset
(
$res
->
player_id
)
&&
!
empty
(
$res
->
player_id
)
?
$res
->
player
_id
:
''
);
$id
=
''
;
$id
=
''
;
$ress
=
$this
->
send_Message
(
$content
,
$headings
,
$include_player_ids
,
$res
,
$type
,
$id
);
$ress
=
$this
->
send_Message
(
$content
,
$headings
,
$include_player_ids
,
$res
,
$type
,
$id
);
...
...
application/models/Webservice_model.php
View file @
2d9494e6
...
@@ -2163,7 +2163,7 @@ function booked_push_data($request){
...
@@ -2163,7 +2163,7 @@ function booked_push_data($request){
function
get_push_notification_details
(
$request
){
function
get_push_notification_details
(
$request
){
$this
->
db
->
where
(
'booking.status'
,
0
);
$this
->
db
->
where
(
'booking.status'
,
0
);
$this
->
db
->
where
(
'ride.users_id'
,
$request
);
$this
->
db
->
where
(
'ride.users_id'
,
$request
);
$this
->
db
->
select
(
'booking.*,ride.no_of_seats AS rideseat,car_details.car_image'
);
$this
->
db
->
select
(
'
users.first_name,users.email,users.phone_no,
booking.*,ride.no_of_seats AS rideseat,car_details.car_image'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
join
(
'ride'
,
'booking.ride_id=ride.id'
,
'left'
);
$this
->
db
->
join
(
'ride'
,
'booking.ride_id=ride.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'ride.users_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'ride.users_id=users.id'
,
'left'
);
...
...
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