Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
IPok
IPok_Web
Commits
58caffe8
Commit
58caffe8
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check wait laist edit
parent
ffe3689d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Webservice.php
admin/application/controllers/Webservice.php
+3
-0
Webservice_model.php
admin/application/models/Webservice_model.php
+1
-1
No files found.
admin/application/controllers/Webservice.php
View file @
58caffe8
...
...
@@ -6709,6 +6709,9 @@ print_r(date('H:i',$ms));exit();*/
$check_authToken
=
$this
->
Webservice_model
->
check_auth_token
(
$headers
[
'Auth'
]);
if
(
$check_authToken
)
{
if
(
isset
(
$data
[
'date'
])
&&
strlen
(
$data
[
'date'
])
&&
isset
(
$data
[
'time'
])
&&
strlen
(
$data
[
'time'
])
&&
isset
(
$data
[
'doctor_id'
])
&&
strlen
(
$data
[
'doctor_id'
])
&&
isset
(
$data
[
'clinic_id'
])
&&
strlen
(
$data
[
'clinic_id'
])){
$authtoken
=
$this
->
Webservice_model
->
get_userid_frm_authtoken
(
$headers
[
'Auth'
]);
$data
[
'user_id'
]
=
$authtoken
->
userid
;
$result
=
$this
->
Webservice_model
->
check_wait_listed
(
$data
);
if
(
$result
[
'status'
]
==
'success'
){
$res
=
array
(
'status'
=>
'success'
,
'data'
=>
array
(
'is_booked'
=>
$result
[
'booked'
]),
'is_return_avail'
=>
$result
[
'is_return_avail'
]);
...
...
This diff is collapsed.
Click to expand it.
admin/application/models/Webservice_model.php
View file @
58caffe8
...
...
@@ -3430,7 +3430,7 @@ class Webservice_model extends CI_Model {
$this
->
db
->
where
(
'doctor_id'
,
$data
[
'doctor_id'
]);
$this
->
db
->
where
(
'clinic_id'
,
$data
[
'clinic_id'
]);
$this
->
db
->
where
(
'patient_id'
,
$
patientid
[
'user
id'
]);
$this
->
db
->
where
(
'patient_id'
,
$
data
[
'user_
id'
]);
$this
->
db
->
where
(
'free_visit_status'
,
0
);
$this
->
db
->
where
(
'visit_type'
,
0
);
$this
->
db
->
where
(
'date >='
,
$new_date
);
...
...
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