Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app_push
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_server
app_push
Commits
8abaebbf
Commit
8abaebbf
authored
May 16, 2019
by
zmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 不是设备id数组的bug
parent
ee029339
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
lib/app_push/huawei.rb
+1
-0
lib/app_push/version.rb
+1
-1
No files found.
lib/app_push/huawei.rb
View file @
8abaebbf
...
...
@@ -15,6 +15,7 @@ module AppPush
end
def
push
(
device_tokens
,
message
)
device_tokens
=
Array
(
device_tokens
)
unless
device_tokens
.
instance_of?
Array
handle_token_res
if
access_token
.
blank?
||
(
expire_time
.
present?
&&
Time
.
now
>=
expire_time
)
device_tokens
.
each_slice
(
100
)
do
|
device_token_array
|
res_push
(
message
,
device_token_array
)
...
...
lib/app_push/version.rb
View file @
8abaebbf
module
AppPush
VERSION
=
"0.1.2"
VERSION
=
"0.1.2
1
"
end
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