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
08d56e2c
Commit
08d56e2c
authored
Nov 22, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/timeout/timeOut
into tobin
parents
cf43c572
e632f486
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
Organizer_model.php
application/models/Organizer_model.php
+1
-1
Validation_app_model.php
application/models/Validation_app_model.php
+6
-0
Webservice_model.php
application/models/Webservice_model.php
+2
-2
No files found.
application/models/Organizer_model.php
View file @
08d56e2c
...
@@ -853,7 +853,7 @@ class Organizer_model extends CI_Model {
...
@@ -853,7 +853,7 @@ class Organizer_model extends CI_Model {
public
function
getCountryCode
(){
public
function
getCountryCode
(){
try
{
try
{
$sql
=
"SELECT
country_id,country_name,country_code,phone_code FROM country WHERE status=1
"
;
$sql
=
"SELECT
DISTINCT phone_code,country_id,country_name,country_code FROM country WHERE status=1 GROUP BY phone_code
"
;
$ctryData
=
$this
->
db
->
query
(
$sql
);
$ctryData
=
$this
->
db
->
query
(
$sql
);
if
(
empty
(
$ctryData
)
||
empty
(
$ctryData
=
$ctryData
->
result_array
())){
if
(
empty
(
$ctryData
)
||
empty
(
$ctryData
=
$ctryData
->
result_array
())){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'No Data Found'
,
'code'
=>
'ER06'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'No Data Found'
,
'code'
=>
'ER06'
);
...
...
application/models/Validation_app_model.php
View file @
08d56e2c
...
@@ -664,6 +664,12 @@ class Validation_app_model extends CI_Model {
...
@@ -664,6 +664,12 @@ class Validation_app_model extends CI_Model {
'message'
=>
'Tracking Id is null or empty'
'message'
=>
'Tracking Id is null or empty'
)
)
),
),
'boardCode'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER02'
,
'message'
=>
'Board Code Field is null or empty'
)
),
),
),
'hotel_book'
=>
array
(
'hotel_book'
=>
array
(
'auth_token'
=>
array
(
'auth_token'
=>
array
(
...
...
application/models/Webservice_model.php
View file @
08d56e2c
...
@@ -2347,7 +2347,7 @@ class Webservice_model extends CI_Model {
...
@@ -2347,7 +2347,7 @@ class Webservice_model extends CI_Model {
$user_id
=
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
$user_id
=
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
if
(
$user_id
>
0
){
if
(
$user_id
>
0
){
$settings
=
getSettings
();
$settings
=
getSettings
();
$url
=
"https://trawex.biz/api/hotel_trawexv5/get_
booking_term
s"
;
$url
=
"https://trawex.biz/api/hotel_trawexv5/get_
rate_rule
s"
;
$postData
=
array
(
$postData
=
array
(
"user_id"
=>
$settings
[
'trawex_user_id'
],
"user_id"
=>
$settings
[
'trawex_user_id'
],
"user_password"
=>
$settings
[
'trawex_user_password'
],
"user_password"
=>
$settings
[
'trawex_user_password'
],
...
@@ -2362,7 +2362,7 @@ class Webservice_model extends CI_Model {
...
@@ -2362,7 +2362,7 @@ class Webservice_model extends CI_Model {
"hotel_name"
=>
$data
[
'hotel_name'
],
"infosource"
=>
$data
[
'infosource'
],
"hotel_name"
=>
$data
[
'hotel_name'
],
"infosource"
=>
$data
[
'infosource'
],
"meal_code"
=>
$data
[
'meal_code'
],
"meal_code"
=>
$data
[
'meal_code'
],
"rate_basis_id"
=>
$data
[
'rate_basis_id'
],
"rate_basis_id"
=>
$data
[
'rate_basis_id'
],
"room_code"
=>
$data
[
'room_code'
],
"room_code"
=>
$data
[
'room_code'
],
"boardCode"
=>
$data
[
'boardCode'
],
"roomType_runno"
=>
$data
[
'roomType_runno'
]);
"roomType_runno"
=>
$data
[
'roomType_runno'
]);
$result
=
$this
->
passToJsonCurl
(
$url
,
$postData
);
$result
=
$this
->
passToJsonCurl
(
$url
,
$postData
);
if
(
!
empty
(
$result
)){
if
(
!
empty
(
$result
)){
...
...
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