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
1d667a53
Commit
1d667a53
authored
Aug 23, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
parent
10d2ae9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
Webservices.php
application/controllers/Webservices.php
+0
-23
Webservice_model.php
application/models/Webservice_model.php
+1
-2
No files found.
application/controllers/Webservices.php
View file @
1d667a53
...
@@ -2786,29 +2786,6 @@
...
@@ -2786,29 +2786,6 @@
echo
json_encode
(
$respArr
);
exit
;
echo
json_encode
(
$respArr
);
exit
;
}
}
// public function car_model_list(){
// header('Content-type:application/json');
// $headers = apache_request_headers();
// if(!isset($headers['auth']) || empty($headers['auth'])){
// $respArr['status'] = 'error';
// $respArr['message'] = 'Authtoken is Required';
// echo json_encode($respArr);exit;
// }
// $authRes = $this->Webservice_model->get_customer_authtoken($headers['auth']);
// if($authRes['status'] == 'error'){
// echo json_encode($authRes);exit;
// }
// $post = file_get_contents("php://input");
// $postData = json_decode($post,true);
// if(empty($postData)){
// $respArr = array('status'=>0,'error'=>'901','message'=>'All Field is Required');
// echo json_encode($respArr);exit;
// }
// $respArr = $this->Webservice_model->getVehicleModel($postData);
// echo json_encode($respArr);exit;
// }
public
function
trim_list
(){
public
function
trim_list
(){
header
(
'Content-type:application/json'
);
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
$headers
=
apache_request_headers
();
...
...
application/models/Webservice_model.php
View file @
1d667a53
...
@@ -57,8 +57,7 @@ class Webservice_model extends CI_Model {
...
@@ -57,8 +57,7 @@ class Webservice_model extends CI_Model {
return
$respArr
;
return
$respArr
;
}
}
$this
->
db
->
select
(
"customer_id as id,is_otp_verified,phone as phone_number,TRIM(CONCAT(first_name,' ' ,IFNULL(last_name,''))) as user_name"
);
$this
->
db
->
select
(
"customer_id as id,is_otp_verified,phone as phone_number,TRIM(CONCAT(first_name,' ' ,IFNULL(last_name,''))) as user_name"
);
$result
=
$this
->
db
->
get_where
(
'customers'
,
array
(
'email'
=>
$userLogData
[
'email'
],
$result
=
$this
->
db
->
get_where
(
'customers'
,
array
(
'email'
=>
$userLogData
[
'email'
],
'status'
=>
'1'
));
'status'
=>
'1'
));
$respArr
[
'status'
]
=
3
;
$respArr
[
'status'
]
=
3
;
if
(
!
empty
(
$result
)
&&
$result
->
num_rows
()
==
1
&&
!
empty
(
$custData
=
$result
->
row
())){
if
(
!
empty
(
$result
)
&&
$result
->
num_rows
()
==
1
&&
!
empty
(
$custData
=
$result
->
row
())){
$authdata
=
$this
->
insert_auth
(
$custData
->
id
);
$authdata
=
$this
->
insert_auth
(
$custData
->
id
);
...
...
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