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
f742b66d
Commit
f742b66d
authored
Nov 20, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : push_sent_cancel app id issue
parent
b3c2a009
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
Notification.php
application/controllers/Notification.php
+2
-2
generals_helper.php
application/helpers/generals_helper.php
+2
-2
Api_model.php
application/models/Api_model.php
+2
-2
Organizer_model.php
application/models/Organizer_model.php
+1
-1
Webservice_model.php
application/models/Webservice_model.php
+3
-3
No files found.
application/controllers/Notification.php
View file @
f742b66d
...
...
@@ -125,7 +125,7 @@ class Notification extends CI_Controller {
'title'
=>
$event_data
->
event_name_EN
,
'param'
=>
'event_id'
,
'message'
=>
$message
);
push_sent_cancel
(
$user
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
1
,
$user
[
'fcm_token'
],
$userData
);
}
$flashMsg
[
'class'
]
=
'success'
;
...
...
@@ -156,7 +156,7 @@ class Notification extends CI_Controller {
'param'
=>
'booking_id'
,
'title'
=>
$bData
[
'event_name_en'
],
'message'
=>
'Booking Remainder'
);
push_sent_cancel
(
$bData
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
1
,
$bData
[
'fcm_token'
],
$userData
);
}
}
}
...
...
application/helpers/generals_helper.php
View file @
f742b66d
...
...
@@ -397,9 +397,9 @@
return
$langArr
;
}
function
push_sent_cancel
(
$fcm_token
=
''
,
$fcm_data
=
array
())
{
function
push_sent_cancel
(
$
app
=
'1'
,
$
fcm_token
=
''
,
$fcm_data
=
array
())
{
$settings
=
getSettings
();
$key
=
$settings
[
'org_app_id'
];
$key
=
(
$app
==
'1'
)
?
$settings
[
'app_id'
]
:
$settings
[
'org_app_id'
];
if
(
empty
(
$key
)
||
empty
(
$fcm_token
)
||
empty
(
$fcm_data
)){
return
;
}
...
...
application/models/Api_model.php
View file @
f742b66d
...
...
@@ -707,7 +707,7 @@ class Api_model extends CI_Model {
'title'
=>
'New Booking'
,
'param'
=>
'booking_id'
,
'message'
=>
'New Booking is There For Approval'
);
push_sent_cancel
(
$bkData
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
2
,
$bkData
[
'fcm_token'
],
$userData
);
}
}
}
else
{
...
...
@@ -1425,7 +1425,7 @@ class Api_model extends CI_Model {
'title'
=>
'New Booking'
,
'param'
=>
'booking_id'
,
'message'
=>
'New Booking is There For Approval'
);
push_sent_cancel
(
$bkData
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
2
,
$bkData
[
'fcm_token'
],
$userData
);
}
}
$this
->
db
->
update
(
'booking'
,
array
(
'status'
=>
$bokStatus
),
array
(
'bookId'
=>
$book_id
));
...
...
application/models/Organizer_model.php
View file @
f742b66d
...
...
@@ -1100,7 +1100,7 @@ class Organizer_model extends CI_Model {
'param'
=>
'booking_id'
,
'title'
=>
'Booking Approved'
,
'message'
=>
'Your Booking is Approved by the Event Provider'
);
push_sent_cancel
(
$bData
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
2
,
$bData
[
'fcm_token'
],
$userData
);
$res
=
array
(
'status'
=>
1
,
'message'
=>
'Booking Accepted Successfully'
);
}
catch
(
Exception
$e
){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something Went South'
,
'code'
=>
'ER06'
);
...
...
application/models/Webservice_model.php
View file @
f742b66d
...
...
@@ -1215,7 +1215,7 @@ class Webservice_model extends CI_Model {
'param'
=>
'booking_id'
,
'title'
=>
'New Booking'
,
'message'
=>
'New Booking is There For Approval'
);
push_sent_cancel
(
$bkData
[
'fcm_token'
],
$userData
);
push_sent_cancel
(
2
,
$bkData
[
'fcm_token'
],
$userData
);
}
}
}
else
{
...
...
@@ -1914,7 +1914,7 @@ class Webservice_model extends CI_Model {
$fcmData
=
array
(
'id'
=>
$user_id
,
'param'
=>
'user_id'
,
'title'
=>
'Accepted Chat Request'
,
'message'
=>
$frmCustData
[
'name'
]
.
' has Accepted Your Chat Request'
);
push_sent_cancel
(
$toCustData
[
'fcm_token'
],
$fcmData
);
push_sent_cancel
(
1
,
$toCustData
[
'fcm_token'
],
$fcmData
);
}
return
(
$status
)
?
1
:
0
;
}
...
...
@@ -1938,7 +1938,7 @@ class Webservice_model extends CI_Model {
$fcmData
=
array
(
'id'
=>
$toUser
,
'param'
=>
'user_id'
,
'title'
=>
'New Chat Request'
,
'message'
=>
'You got a New Chat Request from '
.
$toCustData
[
'name'
]);
push_sent_cancel
(
$frmCustData
[
'fcm_token'
],
$fcmData
);
push_sent_cancel
(
1
,
$frmCustData
[
'fcm_token'
],
$fcmData
);
}
else
if
(
!
empty
(
$result
)
&&
$result
[
'type'
]
==
'0'
){
$this
->
db
->
update
(
'chats'
,
array
(
'type'
=>
'1'
),
array
(
'chat_id'
=>
$result
[
'chat_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