依赖jar包

引入包 版本
jdk 1.8
spring boot 2.7.2
spring-boot-autoconfigure 2.7.2
gexin-rp-sdk-http 4.1.1.4
allbs-common 1.1.6

使用

添加依赖

<dependency>
  <groupId>cn.allbs</groupId>
  <artifactId>allbs-unipush</artifactId>
  <version>1.1.8</version>
</dependency>
implementation 'cn.allbs:allbs-unipush:1.1.8'
implementation("cn.allbs:allbs-unipush:1.1.8")

添加配置

uni-push:
  app-id: cnvd9OFb4V9tCB2lUrLAT6
  app-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  app-secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  master-secret: yUTUtfDQ129wG2qKh8elc
  url: http://api.getui.com/apiex.htm
  offline-expire-time: 720

template注入

private fianl UniPushTemplate uniPushTemplate;

数据推送

uniPushTemplate.pushToAllUser("测试标题", "测试内容");