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
efb51b99
Commit
efb51b99
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
94eb04d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Webservice_mechanic_model.php
application/models/Webservice_mechanic_model.php
+1
-1
Webservice_model.php
application/models/Webservice_model.php
+2
-4
No files found.
application/models/Webservice_mechanic_model.php
View file @
efb51b99
...
...
@@ -139,7 +139,7 @@ public function mechanic_logout($mechanic_id){
$respArr
[
'status'
]
=
"success"
;
$respArr
[
'message'
]
=
"Logged Out Successfully"
;
}
return
$
status
;
return
$
respArr
;
}
public
function
forgot_password
(
$username
){
...
...
This diff is collapsed.
Click to expand it.
application/models/Webservice_model.php
View file @
efb51b99
...
...
@@ -4,8 +4,8 @@ class Webservice_model extends CI_Model {
parent
::
__construct
();
date_default_timezone_set
(
'Asia/Kolkata'
);
}
/***************************************************************************************/
/****************************************Mobile API's***********************************/
/***************************************************************************************
**********
/
/****************************************Mobile API's***********************************
**********
/
public
function
checkMobAvailability
(
$data
=
array
()){
$res
=
array
(
'status'
=>
'success'
,
'message'
=>
'Mobile Number Available'
,
'data'
=>
array
(
'phone'
=>
$data
[
'phone'
],
'is_available'
=>
true
));
...
...
@@ -223,7 +223,6 @@ class Webservice_model extends CI_Model {
if
(
empty
(
$postData
)){
return
$respArr
;
}
if
(
isset
(
$postData
[
'vehicle_id'
])
&&
!
empty
(
$postData
[
'vehicle_id'
])){
$result
=
$this
->
db
->
get_where
(
'customer_vehicle'
,
array
(
'customer_veh_id'
=>
$postData
[
'vehicle_id'
]))
->
row
();
$postData
[
'mileage'
]
=
''
;
...
...
@@ -611,7 +610,6 @@ class Webservice_model extends CI_Model {
$respArr
[
'message'
]
=
'Amount is Required'
;
return
$respArr
;
}
if
(
$this
->
db
->
update
(
'mechanic_booking'
,
array
(
'status'
=>
'1'
),
array
(
'booking_id'
=>
$postData
[
'bookingId'
],
'mechanic_id'
=>
$postData
[
'mechanicId'
]))){
$this
->
db
->
update
(
'mechanic_booking'
,
array
(
'status'
=>
'2'
),
array
(
'booking_id'
=>
$postData
[
'bookingId'
],
'mechanic_id !='
=>
$postData
[
'mechanicId'
]));
$this
->
db
->
update
(
'bookings'
,
array
(
'status'
=>
'5'
,
'cost'
=>
$postData
[
'amount'
]),
array
(
'booking_id'
=>
$postData
[
'bookingId'
]));
...
...
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