Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
4511959e
Commit
4511959e
authored
Jul 27, 2021
by
chengkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bpush application
parent
533a0249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
BPushApplication.kt
...ava/com/yidian/shenghuoquan/bpush/app/BPushApplication.kt
+25
-0
PushService.kt
...java/com/yidian/shenghuoquan/bpush/service/PushService.kt
+29
-0
No files found.
Components/BPush/src/main/java/com/yidian/shenghuoquan/bpush/app/BPushApplication.kt
0 → 100644
View file @
4511959e
package
com.yidian.shenghuoquan.bpush.app
import
com.yidian.bcommon.app.YdBaseApplication
import
com.yidian.bcommon.services.ZapServiceNameConstants
import
com.yidian.news.util.ProcessUtil
import
com.yidian.shenghuoquan.bpush.service.PushService
import
com.yidian.yac.core.zap.Zap
class
BPushApplication
:
YdBaseApplication
()
{
override
fun
onCreate
()
{
super
.
onCreate
()
if
(
ProcessUtil
.
isMainProcess
(
this
))
{
registerXpage
()
initServie
()
}
}
private
fun
registerXpage
()
{
}
private
fun
initServie
()
{
Zap
.
addService
(
ZapServiceNameConstants
.
BPush
,
PushService
())
}
}
Components/BPush/src/main/java/com/yidian/shenghuoquan/bpush/service/PushService.kt
0 → 100644
View file @
4511959e
package
com.yidian.shenghuoquan.bpush.service
import
com.yidian.bcommon.services.ZapServiceActionConstants
import
com.yidian.xarc.xrouter.ResultResolver
import
com.yidian.yac.core.zap.ZapService
import
org.json.JSONObject
class
PushService
:
ZapService
()
{
private
lateinit
var
resolver
:
ResultResolver
override
fun
onAction
(
path
:
String
,
action
:
String
,
params
:
Any
,
options
:
Any
,
resolver
:
ResultResolver
)
{
this
.
resolver
=
resolver
params
as
JSONObject
when
(
action
)
{
ZapServiceActionConstants
.
ActionPushMessage
->
pushMessage
()
}
}
override
fun
onExit
()
{
}
override
fun
onInit
()
{
}
private
fun
pushMessage
()
{
}
}
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