Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igetui-ruby
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_common
igetui-ruby
Commits
1d889835
Commit
1d889835
authored
Aug 23, 2014
by
Victor Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板初始化的时候创建 push_info 对象
parent
80d493c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
lib/igetui/template/base_template.rb
+5
-10
No files found.
lib/igetui/template/base_template.rb
View file @
1d889835
...
@@ -5,7 +5,7 @@ module IGeTui
...
@@ -5,7 +5,7 @@ module IGeTui
def
initialize
def
initialize
@transmission_type
=
0
@transmission_type
=
0
@transmission_content
=
''
@transmission_content
=
''
@push_info
=
nil
@push_info
=
GtReq
::
PushInfo
.
new
end
end
def
get_transparent
(
pusher
)
def
get_transparent
(
pusher
)
...
@@ -25,13 +25,10 @@ module IGeTui
...
@@ -25,13 +25,10 @@ module IGeTui
def
get_push_type
;
end
def
get_push_type
;
end
def
get_push_info
def
get_push_info
unless
@push_info
@push_info
.
actionKey
=
''
@push_info
=
GtReq
::
PushInfo
.
new
@push_info
.
badge
=
''
@push_info
.
actionKey
=
''
@push_info
.
message
=
''
@push_info
.
badge
=
''
@push_info
.
sound
=
''
@push_info
.
message
=
''
@push_info
.
sound
=
''
end
@push_info
@push_info
end
end
...
@@ -39,8 +36,6 @@ module IGeTui
...
@@ -39,8 +36,6 @@ module IGeTui
# iOS Pusher need the top three fields of 'push_info' are required.
# iOS Pusher need the top three fields of 'push_info' are required.
# the others can be blank string.
# the others can be blank string.
def
set_push_info
(
action_loc_key
,
badge
,
message
,
sound
,
payload
,
loc_key
,
loc_args
,
launch_image
)
def
set_push_info
(
action_loc_key
,
badge
,
message
,
sound
,
payload
,
loc_key
,
loc_args
,
launch_image
)
@push_info
=
GtReq
::
PushInfo
.
new
@push_info
.
actionLocKey
=
action_loc_key
@push_info
.
actionLocKey
=
action_loc_key
@push_info
.
badge
=
badge
@push_info
.
badge
=
badge
@push_info
.
message
=
message
@push_info
.
message
=
message
...
...
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