Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
Tobin
dcarfixers
Commits
c3ceb558
Commit
c3ceb558
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_mechanics api
parent
b6bfc0dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Webservices.php
application/controllers/Webservices.php
+7
-5
Webservice_model.php
application/models/Webservice_model.php
+2
-2
No files found.
application/controllers/Webservices.php
View file @
c3ceb558
...
@@ -1151,11 +1151,13 @@
...
@@ -1151,11 +1151,13 @@
}
}
$err
=
0
;
$err
=
0
;
if
((
!
isset
(
$postdata
[
'is_emergency'
])
||
$postdata
[
'is_emergency'
]
!=
1
)
&&
if
(
!
isset
(
$postData
[
'is_emergency'
])
||
$postData
[
'is_emergency'
]
!=
1
){
(
!
isset
(
$postData
[
'service_id'
])
||
empty
(
$postData
[
'service_id'
]))){
if
(
!
isset
(
$postData
[
'service_id'
])
||
empty
(
$postData
[
'service_id'
])){
$err
=
1
;
$err
=
1
;
$msg
=
'Service Id is Required'
;
$msg
=
'Service Id is Required'
;
}
}
}
else
if
(
!
isset
(
$postData
[
'location'
])
||
empty
(
$postData
[
'location'
])){
else
if
(
!
isset
(
$postData
[
'location'
])
||
empty
(
$postData
[
'location'
])){
$err
=
1
;
$err
=
1
;
$msg
=
'Location is Required'
;
$msg
=
'Location is Required'
;
...
...
This diff is collapsed.
Click to expand it.
application/models/Webservice_model.php
View file @
c3ceb558
...
@@ -392,7 +392,7 @@ class Webservice_model extends CI_Model {
...
@@ -392,7 +392,7 @@ class Webservice_model extends CI_Model {
}
}
$current_lat
=
$postData
[
'location_lat'
];
$current_lat
=
$postData
[
'location_lat'
];
$current_lng
=
$postData
[
'location_lng'
];
$current_lng
=
$postData
[
'location_lng'
];
$issue_cat_id
=
$postData
[
'service_id'
];
$issue_cat_id
=
(
isset
(
$postData
[
'is_emergency'
])
&&
$postData
[
'is_emergency'
]
==
1
)
?
''
:
$postData
[
'service_id'
];
if
(
$start
!=
0
||
$per_page
!=
0
){
if
(
$start
!=
0
||
$per_page
!=
0
){
$limt
=
"limit "
.
$start
.
","
.
$per_page
;
$limt
=
"limit "
.
$start
.
","
.
$per_page
;
}
else
{
}
else
{
...
@@ -413,7 +413,7 @@ class Webservice_model extends CI_Model {
...
@@ -413,7 +413,7 @@ class Webservice_model extends CI_Model {
if
(
empty
(
$mechData
)
||
empty
(
$mechData
=
$mechData
->
result_array
())){
if
(
empty
(
$mechData
)
||
empty
(
$mechData
=
$mechData
->
result_array
())){
return
0
;
return
0
;
}
}
if
(
$type
==
0
){
if
(
$type
==
0
){
$respArr
=
$this
->
getNearMechanicsDetails
(
$mechData
,
$issue_cat_id
);
$respArr
=
$this
->
getNearMechanicsDetails
(
$mechData
,
$issue_cat_id
);
if
(
$respArr
[
'status'
]
==
'success'
){
if
(
$respArr
[
'status'
]
==
'success'
){
...
...
This diff is collapsed.
Click to expand it.
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