Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
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
TimeOut
TimeOutAdmin
Commits
e52b719e
Commit
e52b719e
authored
Nov 14, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/timeout/timeOut
into jansa
parents
446bd9b9
7646b619
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
Api.php
application/controllers/Api.php
+9
-9
Webservice_model.php
application/models/Webservice_model.php
+12
-8
No files found.
application/controllers/Api.php
View file @
e52b719e
...
@@ -331,10 +331,10 @@ class Api extends CI_Controller {
...
@@ -331,10 +331,10 @@ class Api extends CI_Controller {
$res
=
$this
->
Api_model
->
payNow
(
$payData
);
$res
=
$this
->
Api_model
->
payNow
(
$payData
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
paymentGateway
(
$amount
,
$res
[
'transaction_id'
],
$event_id
,
$booking_id
,
$res
[
'custData'
],
$cardData
);
$this
->
paymentGateway
(
$amount
,
$res
[
'transaction_id'
],
$event_id
,
$booking_id
,
$res
[
'custData'
],
$cardData
);
}
}
else
{
else
{
redirect
(
$redUrl
.
'failure?event_id='
.
$eventid
);
redirect
(
$redUrl
.
'failure?event_id='
.
$eventid
);
}
}
}
}
...
@@ -355,15 +355,15 @@ class Api extends CI_Controller {
...
@@ -355,15 +355,15 @@ class Api extends CI_Controller {
$saveCard
=
1
;
$saveCard
=
1
;
$savedCard
=
0
;
$savedCard
=
0
;
$cvv
=
$to
c
ken
=
$cardNo
=
$holder
=
$cardType
=
$expMonth
=
$expYear
=
''
;
$cvv
=
$token
=
$cardNo
=
$holder
=
$cardType
=
$expMonth
=
$expYear
=
''
;
if
(
!
empty
(
$cardData
)){
if
(
!
empty
(
$cardData
)
&&
!
empty
(
$cardData
=
urldecode
(
$cardData
))
){
$cardData
=
$this
->
en
crypt
(
$cardData
,
$this
->
local_key
,
$this
->
local_iv
);
$cardData
=
$this
->
de
crypt
(
$cardData
,
$this
->
local_key
,
$this
->
local_iv
);
if
(
empty
(
$cardData
)){
if
(
empty
(
$cardData
)
||
empty
(
$cardData
=
json_decode
(
$cardData
,
true
))
){
redirect
(
$redUrl
.
'failure'
);
redirect
(
$redUrl
.
'failure'
);
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
&&
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
&&
isset
(
$cardData
[
'to
cken'
])
&&
!
empty
(
$cardData
[
'toc
ken'
])){
isset
(
$cardData
[
'to
ken'
])
&&
!
empty
(
$cardData
[
'to
ken'
])){
$cvv
=
$cardData
[
'cvv'
];
$cvv
=
$cardData
[
'cvv'
];
$to
cken
=
$cardData
[
'toc
ken'
];
$to
ken
=
$cardData
[
'to
ken'
];
$savedCard
=
1
;
$savedCard
=
1
;
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
||
}
else
if
(
isset
(
$cardData
[
'cvv'
])
&&
!
empty
(
$cardData
[
'cvv'
])
||
isset
(
$cardData
[
'cardType'
])
&&
!
empty
(
$cardData
[
'cardType'
])
||
isset
(
$cardData
[
'cardType'
])
&&
!
empty
(
$cardData
[
'cardType'
])
||
...
@@ -395,7 +395,7 @@ class Api extends CI_Controller {
...
@@ -395,7 +395,7 @@ class Api extends CI_Controller {
$pText
.=
'111111111111|'
.
$f_Name
.
'|'
.
$l_Name
.
'|'
.
$add1
.
'|'
.
$add2
.
'|'
.
$city
.
'|'
.
$state
.
'|'
.
$pincode
.
$pText
.=
'111111111111|'
.
$f_Name
.
'|'
.
$l_Name
.
'|'
.
$add1
.
'|'
.
$add2
.
'|'
.
$city
.
'|'
.
$state
.
'|'
.
$pincode
.
'|SA|'
.
$phone
.
'|34|344|34355344||'
;
'|SA|'
.
$phone
.
'|34|344|34355344||'
;
if
(
$savedCard
==
1
){
if
(
$savedCard
==
1
){
$pText
.=
'00010000001|'
.
$cvv
.
'|'
.
$to
c
ken
.
'||'
;
$pText
.=
'00010000001|'
.
$cvv
.
'|'
.
$token
.
'||'
;
}
else
{
}
else
{
$pText
.=
'11111100000|'
.
$cardNo
.
'|'
.
$expMonth
.
'|'
.
$expYear
.
'|'
.
$cvv
.
'|'
.
$holder
.
'|'
.
$cardType
.
'||'
;
$pText
.=
'11111100000|'
.
$cardNo
.
'|'
.
$expMonth
.
'|'
.
$expYear
.
'|'
.
$cvv
.
'|'
.
$holder
.
'|'
.
$cardType
.
'||'
;
}
}
...
...
application/models/Webservice_model.php
View file @
e52b719e
...
@@ -713,13 +713,13 @@ class Webservice_model extends CI_Model {
...
@@ -713,13 +713,13 @@ class Webservice_model extends CI_Model {
$where
=
''
;
$where
=
''
;
$countryData
=
$this
->
getCountryData
(
$user_id
);
$countryData
=
$this
->
getCountryData
(
$user_id
);
$lang
=
$countryData
[
'language_code'
];
$lang
=
$countryData
[
'language_code'
];
if
(
isset
(
$data
[
'query'
]))
{
if
(
isset
(
$data
[
'query'
])
&&
!
empty
(
$data
[
'query'
])
)
{
$where
=
' AND TC.category_name LIKE '
.
"'%"
.
$data
[
'query'
]
.
'%'
.
"'"
;
$where
=
' AND TC.category_name LIKE '
.
"'%"
.
$data
[
'query'
]
.
'%'
.
"'"
;
}
}
$sql
=
"SELECT TC.category_id,TC.category_name,TC.category_image
$sql
=
"SELECT TC.category_id,TC.category_name,TC.category_image
FROM translator_category AS TC
FROM translator_category AS TC
INNER JOIN event_category AS ECAT ON (ECAT.cat_id=TC.category_id)
INNER JOIN event_category AS ECAT ON (ECAT.cat_id=TC.category_id)
WHERE ECAT.status = 1 AND
TC.language_code='
$lang
'
$where
WHERE ECAT.status = 1 AND
(TC.language_code='
$lang
' OR TC.language_code='EN')
$where
GROUP BY ECAT.cat_id ORDER BY ECAT.priority"
;
GROUP BY ECAT.cat_id ORDER BY ECAT.priority"
;
$result
=
$this
->
db
->
query
(
$sql
)
->
result
();
$result
=
$this
->
db
->
query
(
$sql
)
->
result
();
if
(
count
(
$result
)
>
0
){
if
(
count
(
$result
)
>
0
){
...
@@ -839,11 +839,12 @@ class Webservice_model extends CI_Model {
...
@@ -839,11 +839,12 @@ class Webservice_model extends CI_Model {
$countryData
=
$this
->
getCountryData
(
$user_id
);
$countryData
=
$this
->
getCountryData
(
$user_id
);
$lang
=
$countryData
[
'language_code'
];
$lang
=
$countryData
[
'language_code'
];
$kk
=
array
();
$sql
=
"SELECT ticket_details FROM booking WHERE bookId='
$bookId
'"
;
$sql
=
"SELECT ticket_details FROM booking WHERE bookId='
$bookId
'"
;
$ticketDetails
=
$this
->
db
->
query
(
$sql
)
->
row
();
$ticketDetails
=
$this
->
db
->
query
(
$sql
)
->
row
();
$res
=
json_decode
(
$ticketDetails
->
ticket_details
);
if
(
!
empty
(
$ticketDetails
)){
if
(
!
empty
(
$res
)){
$res
=
json_decode
(
$ticketDetails
->
ticket_details
);
$kk
[
'ticket_rate'
]
=
"
$res->price
"
;
$kk
[
'ticket_rate'
]
=
(
!
empty
(
$res
))
?
"
$res->price
"
:
''
;
}
}
$settings
=
getSettings
();
$settings
=
getSettings
();
...
@@ -854,10 +855,12 @@ class Webservice_model extends CI_Model {
...
@@ -854,10 +855,12 @@ class Webservice_model extends CI_Model {
$sql
=
"SELECT booking.qrcode,events.event_id,events.venue_id,event_date_time.date,
$sql
=
"SELECT booking.qrcode,events.event_id,events.venue_id,event_date_time.date,
events.has_payment AS is_payment_required,booking.bookId AS ticket_id,
events.has_payment AS is_payment_required,booking.bookId AS ticket_id,
event_gallery.media_url AS event_image,booking.amount AS total_rate,
event_gallery.media_url AS event_image,booking.amount AS total_rate,
event_date_time.time,venue.location AS address,customer.name AS profile_name,
event_date_time.time,venue.location AS address,
customer.name AS profile_name,
venue.location_lng AS longitude,venue.location_lat AS latitude,
venue.location_lng AS longitude,venue.location_lat AS latitude,
booking.no_of_ticket AS ticket_count,customer.profile_image AS profile_photo,
booking.no_of_ticket AS ticket_count,
customer.profile_image_qr
customer.profile_image AS profile_photo,
customer.profile_image_qr,booking.status
FROM events
FROM events
LEFT JOIN event_gallery ON events.event_id=event_gallery.event_id AND
LEFT JOIN event_gallery ON events.event_id=event_gallery.event_id AND
event_gallery.media_type=0
event_gallery.media_type=0
...
@@ -879,6 +882,7 @@ class Webservice_model extends CI_Model {
...
@@ -879,6 +882,7 @@ class Webservice_model extends CI_Model {
$resultData
=
array
();
$resultData
=
array
();
$result
[
'is_payment_required'
]
=
(
$result
[
'is_payment_required'
]
==
1
)
?
true
:
false
;
$result
[
'is_payment_required'
]
=
(
$result
[
'is_payment_required'
]
==
1
)
?
true
:
false
;
$resultData
=
array_merge
(
$settingsDetails
,
$result
,
!
empty
(
$kk
)
?
$kk
:
[]);
$resultData
=
array_merge
(
$settingsDetails
,
$result
,
!
empty
(
$kk
)
?
$kk
:
[]);
$resultData
[
'currency_symbol'
]
=
$countryData
[
'currency_symbol'
];
$res
=
array
(
'status'
=>
1
,
'data'
=>
$resultData
);
$res
=
array
(
'status'
=>
1
,
'data'
=>
$resultData
);
}
else
{
}
else
{
$res
=
array
(
'status'
=>
0
,
'message'
=>
'No records found'
,
'code'
=>
'ER13'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'No records found'
,
'code'
=>
'ER13'
);
...
...
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