Browse Source

还原无效代码

xsx 1 năm trước cách đây
mục cha
commit
e24fbf1db4

+ 0 - 1
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),

+ 0 - 5
im-platform/pom.xml

@@ -91,11 +91,6 @@
             <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
             <version>${knife4j.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.getui.push</groupId>
-            <artifactId>restful-sdk</artifactId>
-            <version>1.0.3.0</version>
-        </dependency>
     </dependencies>
     <build>
         <finalName>${project.artifactId}</finalName>

+ 0 - 44
im-platform/src/main/java/com/bx/implatform/config/UniPushConfig.java

@@ -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;
-    }
-}

+ 0 - 43
im-platform/src/main/java/com/bx/implatform/session/NotifySession.java

@@ -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;
-
-}

+ 0 - 10
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 #半个小时

+ 2 - 12
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" : {