Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
2f2e0c65
Commit
2f2e0c65
authored
Mar 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原推送修改
parent
e0ae96c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
29 deletions
+11
-29
GeTuiUntils.php
application/api/untils/GeTuiUntils.php
+11
-29
No files found.
application/api/untils/GeTuiUntils.php
View file @
2f2e0c65
...
...
@@ -136,38 +136,20 @@ class GeTuiUntils {
*/
function
public_push_message_for_one
(
$id
,
$device_id
,
$title
,
$content
)
{
$homeurl
=
$this
->
http_host
();
$home
_
url
=
$this
->
http_host
();
$data
[
'agent_id'
]
=
$id
;
$data
[
'black_title'
]
=
$title
;
$data
[
'content'
]
=
$content
;
if
(
is_array
(
$device_id
))
{
foreach
(
$device_id
as
$k
=>
$v
)
{
$data
[
'device_id'
]
=
$v
;
$data
[
'touchuan'
]
=
json_encode
(
array
(
'title'
=>
$title
,
'content'
=>
$content
,
'type'
=>
'other'
,
'url'
=>
''
,
'name'
=>
$title
,
'id'
=>
'69'
,
'imageUrl'
=>
$homeurl
.
'notice_android_logo.png'
));
$this
->
push_message_for_one
(
$data
);
}
return
;
}
else
{
$data
[
'device_id'
]
=
$device_id
;
$data
[
'touchuan'
]
=
json_encode
(
array
(
'title'
=>
$title
,
'content'
=>
$content
,
'type'
=>
'other'
,
'url'
=>
''
,
'name'
=>
$title
,
'id'
=>
'69'
,
'imageUrl'
=>
$homeurl
.
'notice_android_logo.png'
));
return
$this
->
push_message_for_one
(
$data
);
}
$data
[
'device_id'
]
=
$device_id
;
$data
[
'touchuan'
]
=
json_encode
(
array
(
'title'
=>
$title
,
'content'
=>
$content
,
'type'
=>
'other'
,
'url'
=>
''
,
'name'
=>
$title
,
'id'
=>
'69'
,
'imageUrl'
=>
$home_url
.
'notice_android_logo.png'
));
return
$this
->
push_message_for_one
(
$data
);
}
public
function
http_host
()
...
...
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