diff --git a/db/im-platform.sql b/db/im-platform.sql index 003b6f8..d90976f 100644 --- a/db/im-platform.sql +++ b/db/im-platform.sql @@ -10,7 +10,6 @@ create table `im_user`( `reason` varchar(255) default '' comment '被封禁原因', `type` smallint default 1 comment '用户类型 1:普通用户 2:审核账户', `signature` varchar(1024) default '' comment '个性签名', - `cid` varchar(255) default '' comment '客户端id,用于uni-push推送', `last_login_time` datetime DEFAULT null comment '最后登录时间', `created_time` datetime DEFAULT CURRENT_TIMESTAMP comment '创建时间', unique key `idx_user_name`(user_name), diff --git a/im-platform/pom.xml b/im-platform/pom.xml index 8aaab0a..65ef8ab 100644 --- a/im-platform/pom.xml +++ b/im-platform/pom.xml @@ -91,11 +91,6 @@ knife4j-openapi3-jakarta-spring-boot-starter ${knife4j.version} - - com.getui.push - restful-sdk - 1.0.3.0 - ${project.artifactId} diff --git a/im-platform/src/main/java/com/bx/implatform/config/UniPushConfig.java b/im-platform/src/main/java/com/bx/implatform/config/UniPushConfig.java deleted file mode 100644 index 641c3f6..0000000 --- a/im-platform/src/main/java/com/bx/implatform/config/UniPushConfig.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.bx.implatform.config; - -import com.getui.push.v2.sdk.ApiHelper; -import com.getui.push.v2.sdk.GtApiConfiguration; -import com.getui.push.v2.sdk.api.PushApi; -import lombok.Data; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.stereotype.Component; - -/** - * @author: 谢绍许 - * @date: 2024-07-06 - * @version: 1.0 - */ -@Data -@Component -public class UniPushConfig { - - @Value("${notify.uniPush.appId}") - private String appId; - @Value("${notify.uniPush.appKey}") - private String appKey; - @Value("${notify.uniPush.masterSecret}") - private String masterSecret; - - @Bean - public GtApiConfiguration uniPushConfiguration(){ - GtApiConfiguration apiConfiguration = new GtApiConfiguration(); - apiConfiguration.setAppId(appId); - apiConfiguration.setAppKey(appKey); - apiConfiguration.setMasterSecret(masterSecret); - return apiConfiguration; - } - - @Bean - public PushApi uniPushApi(GtApiConfiguration configuration){ - // 实例化ApiHelper对象,用于创建接口对象 - ApiHelper apiHelper = ApiHelper.build(configuration); - // 创建对象,建议复用。目前有PushApi、StatisticApi、UserApi - PushApi pushApi = apiHelper.creatApi(PushApi.class); - return pushApi; - } -} diff --git a/im-platform/src/main/java/com/bx/implatform/session/NotifySession.java b/im-platform/src/main/java/com/bx/implatform/session/NotifySession.java deleted file mode 100644 index 1ab253c..0000000 --- a/im-platform/src/main/java/com/bx/implatform/session/NotifySession.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.bx.implatform.session; - -import lombok.Data; - -/** - * 离线通知session - * @author: blue - * @date: 2024-07-06 - * @version: 1.0 - */ -@Data -public class NotifySession { - /** - * 接收方客户端id - */ - private String cid; - - /** - * 通知id - */ - private Integer notifyId; - - /** - * 发送方用户名 - */ - private String sendNickName; - - /** - * 标题 - */ - private String title; - - /** - * 显示图标 - */ - private String logo; - - /** - * 消息数量 - */ - private Integer count; - -} diff --git a/im-platform/src/main/resources/application.yml b/im-platform/src/main/resources/application.yml index 62ce8d6..ae5abb0 100644 --- a/im-platform/src/main/resources/application.yml +++ b/im-platform/src/main/resources/application.yml @@ -21,16 +21,6 @@ mybatis-plus: map-underscore-to-camel-case: true #开启自动驼峰命名规则 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl -notify: - enable: true - max: - private: -1 # 私聊单个会话最大通知数量,-1表示不显示 - group: 10 # 群聊单个会话最大通知数量,-1表示不显示 - uniPush: - appId: nyK71XQYUy9s7Vlzoutlp1 - appKey: XtG6NkUSL98evtpLSE0jYA - masterSecret: MxApXxsx057jcPCeC0cXk6 - jwt: accessToken: expireIn: 1800 #半个小时 diff --git a/im-uniapp/manifest.json b/im-uniapp/manifest.json index 2c30905..d69c7ad 100644 --- a/im-uniapp/manifest.json +++ b/im-uniapp/manifest.json @@ -20,8 +20,7 @@ "modules" : { "Camera" : {}, "Record" : {}, - "Bluetooth" : {}, - "Push" : {} + "Bluetooth" : {} }, /* 应用发布信息 */ "distribute" : { @@ -60,16 +59,7 @@ /* SDK配置 */ "sdkConfigs" : { "ad" : {}, - "speech" : {}, - "push" : { - "unipush" : { - "icons" : { - "small" : { - "ldpi" : "C:/Users/82565/Desktop/盒子/logo.png" - } - } - } - } + "speech" : {} }, "icons" : { "android" : {