Explorar el Código

Merge remote-tracking branch 'origin/master'

ct hace 2 días
padre
commit
a9de0341ca

+ 0 - 103
fs-admin/src/test/java/com/fs/course/controller/OpenIMServiceTest.java

@@ -1,103 +0,0 @@
-package com.fs.course.controller;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fs.FSApplication;
-import com.fs.common.annotation.DataSource;
-import com.fs.im.dto.OpenImMsgDTO;
-import com.fs.im.dto.OpenImResponseDTO;
-import com.fs.im.service.OpenIMService;
-import lombok.extern.slf4j.Slf4j;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
-import org.springframework.data.redis.core.RedisTemplate;
-import org.springframework.test.context.ActiveProfiles;
-
-import static org.junit.Assert.assertNotNull;
-
-@Slf4j
-@ActiveProfiles("druid-fby-test")
-@RunWith(org.springframework.test.context.junit4.SpringRunner.class)
-@SpringBootTest(classes = FSApplication.class)
-public class OpenIMServiceTest {
-
-    @Autowired
-    private OpenIMService openIMService;
-    @Test
-    public void openIMSendMsg() {
-        OpenImMsgDTO openImMsgDTO = new OpenImMsgDTO();
-        openImMsgDTO.setSendID("fbyC8584");
-        openImMsgDTO.setRecvID("fbyU1077739");
-//        openImMsgDTO.setGroupID("group789");
-        openImMsgDTO.setSenderNickname("测试用户");
-        openImMsgDTO.setSenderFaceURL("https://example.com/avatar.jpg");
-        openImMsgDTO.setSenderPlatformID(1);
-        openImMsgDTO.setContentType(101);
-        openImMsgDTO.setSessionType(1);
-        openImMsgDTO.setOnlineOnly(false);
-        openImMsgDTO.setNotOfflinePush(false);
-        openImMsgDTO.setSendTime(System.currentTimeMillis());
-        openImMsgDTO.setEx("额外信息");
-
-        // Content
-        OpenImMsgDTO.Content content = new OpenImMsgDTO.Content();
-        content.setContent("Hello World");
-        content.setData("test data");
-        content.setDescription("测试消息");
-        content.setExtension("ext");
-        openImMsgDTO.setContent(content);
-
-        // OfflinePushInfo
-        OpenImMsgDTO.OfflinePushInfo offlinePushInfo = new OpenImMsgDTO.OfflinePushInfo();
-        offlinePushInfo.setTitle("新消息");
-        offlinePushInfo.setDesc("您收到一条新消息");
-        offlinePushInfo.setEx("push ex");
-        offlinePushInfo.setIOSPushSound("default");
-        offlinePushInfo.setIOSBadgeCount(true);
-        openImMsgDTO.setOfflinePushInfo(offlinePushInfo);
-
-        // 调用方法
-        OpenImResponseDTO result = openIMService.openIMSendMsg(openImMsgDTO);
-
-        // 断言
-        assertNotNull(result);
-    }
-
-    @Test
-    public void aiAutoReply() {
-    }
-
-    @Test
-    public void sendUtil() {
-    }
-
-    @Test
-    public void sendUtilUserToDoctor() {
-    }
-
-    @Test
-    public void editConversation() {
-    }
-
-    @Test
-    public void sendCourse() throws JsonProcessingException {
-        Long userId = 1077739L;
-        Long companyUserId = 8584L;
-        String url = "https://example.com/course/123";
-        String title = "Java编程基础课程";
-        String linkImageUrl = "https://example.com/images/course-cover.jpg";
-        String cropId = "crop_123456";
-
-        OpenImResponseDTO actualResponse = openIMService.sendCourse(
-                userId, companyUserId, url, title, linkImageUrl, cropId
-        );
-        log.info("返回结果: {}",actualResponse);
-    }
-
-    @Test
-    public void sendPackageUtil() {
-    }
-}

+ 4 - 3
fs-service/src/main/resources/application-config-druid-ddgy.yml

@@ -66,15 +66,16 @@ watch:
 fs :
   commonApi: http://172.16.0.65:8010
   h5CommonApi: http://172.16.0.65:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e52134348f16b27cde513c0f1e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-hat.yml

@@ -66,15 +66,16 @@ watch:
 fs :
   commonApi: http://172.16.0.45:8010
   h5CommonApi: http://172.16.0.45:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e12512448f86b67cde591c1f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-hcl.yml

@@ -62,15 +62,16 @@ watch:
 fs :
   commonApi: http://192.168.0.93:8010
   h5CommonApi: http://192.168.0.93:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e52034348f66b67cde591c0f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-hst.yml

@@ -62,15 +62,16 @@ watch:
 fs :
   commonApi: http://172.16.0.26:7771
   h5CommonApi: http://172.16.0.26:7771
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e22034348f55b67cde544c0f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-jzzx.yml

@@ -66,15 +66,16 @@ watch:
 fs :
   commonApi: http://192.168.0.238:8010
   h5CommonApi: http://192.168.0.238:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e52034348f86ba7caa581a0f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-kyt.yml

@@ -62,15 +62,16 @@ watch:
 fs :
   commonApi: http://172.17.0.10:8010
   h5CommonApi: http://172.17.0.10:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e51032348f84b67cde591c0f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 4 - 3
fs-service/src/main/resources/application-config-druid-qdtst.yml

@@ -62,15 +62,16 @@ watch:
 fs :
   commonApi: http://10.206.0.16:8010
   h5CommonApi: http://10.206.0.16:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
     secret: f4e2e52024343f56b67cde581c0f9e16
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT

+ 5 - 4
fs-service/src/main/resources/application-config-druid-sxjz.yml

@@ -66,15 +66,16 @@ watch:
 fs :
   commonApi: http://172.27.0.12:8010
   h5CommonApi: http://172.27.0.12:8010
-nuonuo:
-  key: 10924508
-  secret: A2EB20764D304D16
   jwt:
     # 加密秘钥
-    secret: f4e2e52134358f99b67cde612c0f9e16
+    secret: f4s2x52034348j86z67cde581c0f9e19
     # token有效时长,7天,单位秒
     expire: 31536000
     header: AppToken
+nuonuo:
+  key: 10924508
+  secret: A2EB20764D304D16
+
 # 存储捅配置
 tencent_cloud_config:
   secret_id: AKIDiMq9lDf2EOM9lIfqqfKo7FNgM5meD0sT