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
04ca174b
Commit
04ca174b
authored
May 22, 2019
by
zmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
包装igetui参数为想要的形式
parent
6cee936c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/services/push/igetui.rb
+4
-4
No files found.
app/services/push/igetui.rb
View file @
04ca174b
module
Push
module
Igetui
class
<<
self
attr_accessor
:config
def
push
(
user_device_ids
,
template_data
=
{},
opts
=
{})
# 包装成igetui 真正需要的参数格式
opts
[
:transmission_content
]
=
template_data
if
user_device_ids
.
size
>
1
push_transmission_to_list_igetui
(
user_device_ids
,
template_data
)
push_transmission_to_list_igetui
(
user_device_ids
,
opts
)
else
push_transmission_to_igetui
(
user_device_ids
,
template_data
)
push_transmission_to_igetui
(
user_device_ids
,
opts
)
end
rescue
StandardError
=>
err
::
Push
::
Log
.
error
(
err
)
...
...
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