客户端消息发送
This commit is contained in:
17
hs-im-app-server/logs/mylog.log.2023-09-25.log
Normal file
17
hs-im-app-server/logs/mylog.log.2023-09-25.log
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
2023-09-25 10:44:58 -Starting AppServiceApplication on luojie with PID 131188 (E:\workplace\huashi_project\im-system\hs-im-app-server\target\classes started by coolp in E:\workplace\huashi_project\im-system\hs-im-app-server)
|
||||||
|
2023-09-25 10:44:58 -The following profiles are active: dev
|
||||||
|
2023-09-25 10:44:58 -Tomcat initialized with port(s): 8989 (http)
|
||||||
|
2023-09-25 10:44:58 -Initializing ProtocolHandler ["http-nio-8989"]
|
||||||
|
2023-09-25 10:44:58 -Starting service [Tomcat]
|
||||||
|
2023-09-25 10:44:58 -Starting Servlet engine: [Apache Tomcat/9.0.37]
|
||||||
|
2023-09-25 10:44:59 -Initializing Spring embedded WebApplicationContext
|
||||||
|
2023-09-25 10:44:59 -Root WebApplicationContext: initialization completed in 530 ms
|
||||||
|
2023-09-25 10:45:01 -Initializing ExecutorService 'applicationTaskExecutor'
|
||||||
|
2023-09-25 10:45:01 -Starting ProtocolHandler ["http-nio-8989"]
|
||||||
|
2023-09-25 10:45:01 -Tomcat started on port(s): 8989 (http) with context path ''
|
||||||
|
2023-09-25 10:45:01 -Started AppServiceApplication in 2.996 seconds (JVM running for 4.172)
|
||||||
|
2023-09-25 10:48:07 -Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||||
|
2023-09-25 10:48:07 -Initializing Servlet 'dispatcherServlet'
|
||||||
|
2023-09-25 10:48:07 -Completed initialization in 3 ms
|
||||||
|
2023-09-25 10:48:43 -HikariPool-1 - Starting...
|
||||||
|
2023-09-25 10:48:43 -HikariPool-1 - Start completed.
|
||||||
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: Chackylee
|
* @author: rowger
|
||||||
* @description:
|
* @description:
|
||||||
**/
|
**/
|
||||||
@Service
|
@Service
|
||||||
@@ -33,7 +33,7 @@ public class LoginServiceImpl implements LoginService {
|
|||||||
* @param [req]
|
* @param [req]
|
||||||
* @return com.lld.app.common.ResponseVO
|
* @return com.lld.app.common.ResponseVO
|
||||||
* @description 登录服务,需返回im userSign,和app的userSign
|
* @description 登录服务,需返回im userSign,和app的userSign
|
||||||
* @author chackylee
|
* @author rowger
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ResponseVO login(LoginReq req) {
|
public ResponseVO login(LoginReq req) {
|
||||||
@@ -67,7 +67,7 @@ public class LoginServiceImpl implements LoginService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 注册我们的服务并向im导入用户
|
* @description 注册我们的服务并向im导入用户
|
||||||
* @author chackylee
|
* @author rowger
|
||||||
* @param [req]
|
* @param [req]
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,74 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
<module version="4">
|
||||||
<component name="FacetManager">
|
<component name="FacetManager">
|
||||||
<facet type="Spring" name="Spring">
|
<facet type="Spring" name="Spring">
|
||||||
<configuration />
|
<configuration />
|
||||||
</facet>
|
</facet>
|
||||||
</component>
|
</component>
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
|
||||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-access:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.51" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.27" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.redisson:redisson:3.15.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.reactivex.rxjava3:rxjava:3.0.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling-river:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-bean:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-core:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:5.6.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.sgroschupf:zkclient:0.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.3.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jline:jline:0.9.94" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: junit:junit:4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-core:8.18.0" level="project" />
|
|
||||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.jvnet:animal-sniffer-annotation:1.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-jackson:8.18.0" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
</module>
|
||||||
@@ -34,7 +34,7 @@ public class SigAPI {
|
|||||||
|
|
||||||
public static void main(String[] args) throws InterruptedException {
|
public static void main(String[] args) throws InterruptedException {
|
||||||
SigAPI asd = new SigAPI(10000, "123456");
|
SigAPI asd = new SigAPI(10000, "123456");
|
||||||
String sign = asd.genUserSig("lld", 100000000);
|
String sign = asd.genUserSig("18000702230", 100000000);
|
||||||
// Thread.sleep(2000L);
|
// Thread.sleep(2000L);
|
||||||
JSONObject jsonObject = decodeUserSig(sign);
|
JSONObject jsonObject = decodeUserSig(sign);
|
||||||
System.out.println("sign:" + sign);
|
System.out.println("sign:" + sign);
|
||||||
@@ -191,4 +191,4 @@ public class SigAPI {
|
|||||||
0, compressedBytesLength)))).replaceAll("\\s*", "");
|
0, compressedBytesLength)))).replaceAll("\\s*", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,130 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
<module version="4">
|
||||||
<component name="FacetManager">
|
<component name="FacetManager">
|
||||||
<facet type="web" name="Web">
|
<facet type="web" name="Web">
|
||||||
<configuration>
|
<configuration>
|
||||||
<webroots />
|
<webroots />
|
||||||
|
<sourceRoots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||||
|
<root url="file://$MODULE_DIR$/target/generated-sources/annotations" />
|
||||||
|
</sourceRoots>
|
||||||
</configuration>
|
</configuration>
|
||||||
</facet>
|
</facet>
|
||||||
<facet type="Spring" name="Spring">
|
<facet type="Spring" name="Spring">
|
||||||
<configuration />
|
<configuration />
|
||||||
</facet>
|
</facet>
|
||||||
</component>
|
</component>
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
|
||||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-amqp:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.13.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.amqp:spring-rabbit:2.2.9.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.amqp:spring-amqp:2.2.9.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.retry:spring-retry:1.2.5.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.glassfish:jakarta.el:3.0.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.1.5.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.sgroschupf:zkclient:0.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.3.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jline:jline:0.9.94" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: junit:junit:4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.37" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.37" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="module" module-name="im-codec" />
|
|
||||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.0.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:8.0.21" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.4.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.4.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.4.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.4.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.4.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.jeffreyning:mybatisplus-plus:1.5.1-RELEASE" level="project" />
|
|
||||||
<orderEntry type="module" module-name="common" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
|
||||||
<orderEntry type="module" module-name="im-system" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-access:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.51" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.27" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.redisson:redisson:3.15.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.reactivex.rxjava3:rxjava:3.0.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling-river:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-bean:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-core:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:5.6.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-core:8.18.0" level="project" />
|
|
||||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.jvnet:animal-sniffer-annotation:1.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-jackson:8.18.0" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
</module>
|
||||||
@@ -14,7 +14,6 @@ public class Application {
|
|||||||
SpringApplication.run(Application.class, args);
|
SpringApplication.run(Application.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import com.lld.im.service.conversation.model.DeleteConversationReq;
|
|||||||
import com.lld.im.service.conversation.model.UpdateConversationReq;
|
import com.lld.im.service.conversation.model.UpdateConversationReq;
|
||||||
import com.lld.im.service.conversation.service.ConversationService;
|
import com.lld.im.service.conversation.service.ConversationService;
|
||||||
import com.lld.im.service.group.model.req.ImportGroupReq;
|
import com.lld.im.service.group.model.req.ImportGroupReq;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
@@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
* @author: lld
|
* @author: lld
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("v1/conversation")
|
@RequestMapping("v1/conversation")
|
||||||
public class ConversationController {
|
public class ConversationController {
|
||||||
@@ -43,6 +45,10 @@ public class ConversationController {
|
|||||||
@RequestMapping("/syncConversationList")
|
@RequestMapping("/syncConversationList")
|
||||||
public ResponseVO syncFriendShipList(@RequestBody @Validated SyncReq req, Integer appId) {
|
public ResponseVO syncFriendShipList(@RequestBody @Validated SyncReq req, Integer appId) {
|
||||||
req.setAppId(appId);
|
req.setAppId(appId);
|
||||||
|
log.info("&&&&&&&&&&&&&&&&&&&&&&&&&&&");
|
||||||
|
log.info(req.toString());
|
||||||
|
log.info(appId.toString());
|
||||||
|
log.info("&&&&&&&&&&&&&&&&&&&&&&&&&&&");
|
||||||
return conversationService.syncConversationSet(req);
|
return conversationService.syncConversationSet(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,14 @@ package com.lld.im.service.friendship.controller;
|
|||||||
import com.lld.im.common.ResponseVO;
|
import com.lld.im.common.ResponseVO;
|
||||||
import com.lld.im.service.friendship.model.req.*;
|
import com.lld.im.service.friendship.model.req.*;
|
||||||
import com.lld.im.service.friendship.service.ImFriendService;
|
import com.lld.im.service.friendship.service.ImFriendService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("v1/friendship")
|
@RequestMapping("v1/friendship")
|
||||||
public class ImFriendShipController {
|
public class ImFriendShipController {
|
||||||
@@ -48,6 +50,7 @@ public class ImFriendShipController {
|
|||||||
|
|
||||||
@RequestMapping("/getAllFriendShip")
|
@RequestMapping("/getAllFriendShip")
|
||||||
public ResponseVO getAllFriendShip(@RequestBody @Validated GetAllFriendShipReq req, Integer appId){
|
public ResponseVO getAllFriendShip(@RequestBody @Validated GetAllFriendShipReq req, Integer appId){
|
||||||
|
log.info("***********************appId: ",appId.toString());
|
||||||
req.setAppId(appId);
|
req.setAppId(appId);
|
||||||
return imFriendShipService.getAllFriendShip(req);
|
return imFriendShipService.getAllFriendShip(req);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import com.lld.im.common.BaseErrorCode;
|
|||||||
import com.lld.im.common.ResponseVO;
|
import com.lld.im.common.ResponseVO;
|
||||||
import com.lld.im.common.enums.GateWayErrorCode;
|
import com.lld.im.common.enums.GateWayErrorCode;
|
||||||
import com.lld.im.common.exception.ApplicationExceptionEnum;
|
import com.lld.im.common.exception.ApplicationExceptionEnum;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -19,6 +20,7 @@ import java.io.PrintWriter;
|
|||||||
* @author: lld
|
* @author: lld
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
public class GateWayInterceptor implements HandlerInterceptor {
|
public class GateWayInterceptor implements HandlerInterceptor {
|
||||||
|
|
||||||
@@ -58,6 +60,10 @@ public class GateWayInterceptor implements HandlerInterceptor {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.info("==========identifier:",identifier);
|
||||||
|
log.info("==========appIdStr:",appIdStr);
|
||||||
|
log.info("==========userSign:",userSign);
|
||||||
|
|
||||||
//签名和操作人和appid是否匹配
|
//签名和操作人和appid是否匹配
|
||||||
ApplicationExceptionEnum applicationExceptionEnum = identityCheck.checkUserSig(identifier, appIdStr, userSign);
|
ApplicationExceptionEnum applicationExceptionEnum = identityCheck.checkUserSig(identifier, appIdStr, userSign);
|
||||||
if(applicationExceptionEnum != BaseErrorCode.SUCCESS){
|
if(applicationExceptionEnum != BaseErrorCode.SUCCESS){
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.lld.im.service.user.model.req.*;
|
|||||||
import com.lld.im.service.user.service.ImUserService;
|
import com.lld.im.service.user.service.ImUserService;
|
||||||
import com.lld.im.service.user.service.ImUserStatusService;
|
import com.lld.im.service.user.service.ImUserStatusService;
|
||||||
import com.lld.im.service.utils.ZKit;
|
import com.lld.im.service.utils.ZKit;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
@@ -25,6 +26,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("v1/user")
|
@RequestMapping("v1/user")
|
||||||
|
@Slf4j
|
||||||
public class ImUserController {
|
public class ImUserController {
|
||||||
@Autowired
|
@Autowired
|
||||||
ImUserService imUserService;
|
ImUserService imUserService;
|
||||||
@@ -81,7 +83,10 @@ public class ImUserController {
|
|||||||
@RequestMapping("/getUserSequence")
|
@RequestMapping("/getUserSequence")
|
||||||
public ResponseVO getUserSequence(@RequestBody @Validated
|
public ResponseVO getUserSequence(@RequestBody @Validated
|
||||||
GetUserSequenceReq req, Integer appId) {
|
GetUserSequenceReq req, Integer appId) {
|
||||||
req.setAppId(appId);
|
|
||||||
|
log.info("***********************appId: ",appId.toString());
|
||||||
|
log.info("***********************userId: ",req.getUserId());
|
||||||
|
|
||||||
return imUserService.getUserSequence(req);
|
return imUserService.getUserSequence(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,6 @@ appConfig:
|
|||||||
mqQueueName: 123
|
mqQueueName: 123
|
||||||
|
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
mapper-locations: classpath*:mapper/*.xml
|
mapper-locations: classpath*:mapper/*.xml
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" version="4">
|
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
|
||||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/im-codec/src/main/java" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/im-tcp/src/main/java" isTestSource="false" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-access:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.51" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.27" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.redisson:redisson:3.15.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.reactivex.rxjava3:rxjava:3.0.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling-river:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-bean:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-core:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:5.6.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.sgroschupf:zkclient:0.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.3.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jline:jline:0.9.94" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: junit:junit:4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
|
|
||||||
<orderEntry type="module" module-name="common" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-core:8.18.0" level="project" />
|
|
||||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.jvnet:animal-sniffer-annotation:1.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-jackson:8.18.0" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
||||||
@@ -1,81 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
<module version="4">
|
||||||
<component name="FacetManager">
|
<component name="FacetManager">
|
||||||
<facet type="Spring" name="Spring">
|
<facet type="Spring" name="Spring">
|
||||||
<configuration />
|
<configuration />
|
||||||
</facet>
|
</facet>
|
||||||
</component>
|
</component>
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
|
||||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.1.5.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.github.sgroschupf:zkclient:0.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.3.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jline:jline:0.9.94" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: junit:junit:4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: log4j:log4j:1.2.14" level="project" />
|
|
||||||
<orderEntry type="module" module-name="common" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.2.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.14" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.27" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.redisson:redisson:3.15.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-codec-dns:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.35.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: io.reactivex.rxjava3:rxjava:3.0.12" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling-river:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jboss.marshalling:jboss-marshalling:2.0.11.Final" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.1" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-bean:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.jodd:jodd-core:5.1.6" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.rabbitmq:amqp-client:5.6.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-core:8.18.0" level="project" />
|
|
||||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.jvnet:animal-sniffer-annotation:1.0" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-jackson:8.18.0" level="project" />
|
|
||||||
<orderEntry type="module" module-name="im-codec" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-access:1.2.3" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.51" level="project" />
|
|
||||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
</module>
|
||||||
8
im-uniapp/common/config.js
Normal file
8
im-uniapp/common/config.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export default class config{
|
||||||
|
static getImApiUrl(){
|
||||||
|
return process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:28000/v1' :'http://www.shudong.xyz/shudong_api/';
|
||||||
|
}
|
||||||
|
static getImAppId(){
|
||||||
|
return 10000;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -30,9 +30,9 @@ Vue.prototype.$pinyin = pinyin;
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
Vue.prototype.$socketTask = socketTask;
|
Vue.prototype.$socketTask = socketTask;
|
||||||
|
|
||||||
uni.lim = lim;
|
// uni.lim = lim;
|
||||||
|
|
||||||
Vue.prototype.imsdk = lim
|
// Vue.prototype.imsdk = lim
|
||||||
|
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
@@ -58,7 +58,8 @@ export function createApp() {
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
app.config.globalProperties.$socketTask = socketTask
|
app.config.globalProperties.$socketTask = socketTask
|
||||||
|
|
||||||
app.config.globalProperties.imsdk = imsdk
|
app.config.globalProperties.imsdk = lim
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
app.use(store);
|
app.use(store);
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ let observer = null;
|
|||||||
import favorites from '../favorites/index.vue';
|
import favorites from '../favorites/index.vue';
|
||||||
import chatItem from './chat-item.vue';
|
import chatItem from './chat-item.vue';
|
||||||
import sendCard from './sendCard.vue';
|
import sendCard from './sendCard.vue';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
chatItem,
|
chatItem,
|
||||||
@@ -627,18 +629,26 @@ export default {
|
|||||||
if (!e) {
|
if (!e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$fc.pushOutMsg({
|
/*
|
||||||
|
this.$fc.pushOutMsg({
|
||||||
msgContent: e,
|
msgContent: e,
|
||||||
msgType: msgType,
|
msgType: msgType,
|
||||||
windowType: this.talkTo.windowType,
|
windowType: this.talkTo.windowType,
|
||||||
userId: this.talkTo.userId
|
userId: this.talkTo.userId
|
||||||
});
|
});
|
||||||
this.msg = '';
|
this.msg = '';
|
||||||
|
*/
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.msgFocus = false;
|
this.msgFocus = false;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.msgFocus = true;
|
this.msgFocus = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log("==============sdk:")
|
||||||
|
console.log(this.talkTo.userId)
|
||||||
|
|
||||||
|
this.imsdk.lim.im.sendP2PMessage(this.imsdk.lim.im.createP2PTextMessage(this.talkTo.userId, e))
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
startRecognize() {
|
startRecognize() {
|
||||||
|
|||||||
@@ -229,14 +229,7 @@
|
|||||||
url: '../tabbar1/index'
|
url: '../tabbar1/index'
|
||||||
})
|
})
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
// #ifdef H5
|
|
||||||
this.$socketTask.connectSocket()
|
|
||||||
// #endif
|
|
||||||
this.$store.dispatch('get_UserInfo').then(res => {
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import config from "@/common/config.js"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const ListenerMap = {
|
const ListenerMap = {
|
||||||
onSocketConnectEvent: (option, status, data) => {
|
onSocketConnectEvent: (option, status, data) => {
|
||||||
console.log("已建立连接:" + JSON.stringify(status));
|
console.log("已建立连接:" + JSON.stringify(status));
|
||||||
@@ -189,19 +193,33 @@
|
|||||||
|
|
||||||
console.log(this.imsdk)
|
console.log(this.imsdk)
|
||||||
|
|
||||||
//app服务登录成功,去登录im
|
|
||||||
const lim = this.imsdk
|
|
||||||
const sdk = lim.im;
|
|
||||||
|
|
||||||
var listeners = {};
|
var listeners = {};
|
||||||
for (const v in ListenerMap) {
|
for (const v in ListenerMap) {
|
||||||
listeners[v] = ListenerMap[v];
|
listeners[v] = ListenerMap[v];
|
||||||
}
|
}
|
||||||
|
|
||||||
sdk.init("http://127.0.0.1:28000/v1","10000", "18200702230", "asdasdsd", listeners, function(
|
|
||||||
|
const userId=uni.getStorageSync("userId")
|
||||||
|
const imUserSign=uni.getStorageSync("imUserSign")
|
||||||
|
|
||||||
|
console.log(this.imsdk)
|
||||||
|
|
||||||
|
this.imsdk.lim.im.init(config.getImApiUrl(),config.getImAppId(),userId,imUserSign, listeners, function(
|
||||||
sdk) {
|
sdk) {
|
||||||
if (sdk) {
|
if (sdk) {
|
||||||
console.log('sdk 成功连接的回调, 可以使用 sdk 请求数据了.');
|
console.log('sdk 成功连接的回调, 可以使用 sdk 请求数据了.');
|
||||||
|
sdk.getAllFriend().then(res=>{
|
||||||
|
console.warn(res)
|
||||||
|
})
|
||||||
|
sdk.getUserSequence().then(res=>{
|
||||||
|
console.warn(res)
|
||||||
|
})
|
||||||
|
|
||||||
|
sdk.getUserConversationList(0).then(res=>{
|
||||||
|
console.warn(res)
|
||||||
|
})
|
||||||
|
|
||||||
return uni.switchTab({
|
return uni.switchTab({
|
||||||
url: "/pages/tabbar/index/index"
|
url: "/pages/tabbar/index/index"
|
||||||
})
|
})
|
||||||
@@ -210,6 +228,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
longpressItem(e, i, v) {
|
longpressItem(e, i, v) {
|
||||||
|
|||||||
@@ -20,11 +20,43 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
bindClick(e){
|
bindClick(e){
|
||||||
|
//注释之前的旧代码,直接跳转到里聊天页
|
||||||
|
/*
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'../personInfo/detail?param='+e.item.data.userId
|
url:'../personInfo/detail?param='+e.item.data.userId
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '../chatWindow/index?userId=' + e.item.data.userId + '&windowType=' + e.windowType
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getflist(){
|
getflist(){
|
||||||
|
//TODO 从接口获取
|
||||||
|
var list=[
|
||||||
|
{
|
||||||
|
name:"测试18200702230",
|
||||||
|
avatar:"item.portrait",
|
||||||
|
userId:"18200702230",
|
||||||
|
userType:"item.userType",
|
||||||
|
chatNo:"item.chatNo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name:"测试18200000000",
|
||||||
|
avatar:"item.portrait",
|
||||||
|
userId:"18200000000",
|
||||||
|
userType:"item.userType",
|
||||||
|
chatNo:"item.chatNo"
|
||||||
|
},{
|
||||||
|
name:"测试18200000001",
|
||||||
|
avatar:"item.portrait",
|
||||||
|
userId:"18200000001",
|
||||||
|
userType:"item.userType",
|
||||||
|
chatNo:"item.chatNo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
this.list=this.$fc.sortList({list:list,key:'name'})
|
||||||
|
|
||||||
this.$http.request({
|
this.$http.request({
|
||||||
url: '/friend/friendList',
|
url: '/friend/friendList',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@@ -278,6 +278,24 @@ export class ImClient {
|
|||||||
resolve(resp);
|
resolve(resp);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getUserSequence(): Promise<any> {
|
||||||
|
return new Promise((resolve, _) => {
|
||||||
|
let api = new HttpApi(this.httpUrl);
|
||||||
|
let resp = api.call("/user/getUserSequence", this.getRequestParams(), { userId: this.userId })
|
||||||
|
resolve(resp);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public getUserConversationList(lastSequence:Long): Promise<any> {
|
||||||
|
return new Promise((resolve, _) => {
|
||||||
|
let api = new HttpApi(this.httpUrl);
|
||||||
|
let resp = api.call("/conversation/syncConversationList", this.getRequestParams(), { userId: this.userId,appId:this.appId,maxLimit:100, lastSequence:lastSequence })
|
||||||
|
resolve(resp);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 2、心跳
|
// 2、心跳
|
||||||
private heartbeatLoop(conn) {
|
private heartbeatLoop(conn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user