Browse Source

fix
会话在线消息发送失败时的处理

lifang 2 weeks ago
parent
commit
246f2193da

+ 65 - 0
tr-test/src/main/resources/application-prod.yml

@@ -0,0 +1,65 @@
+spring:
+  application:
+    name: smartFollowUp
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driverClassName: org.postgresql.Driver
+    url: jdbc:postgresql://101.132.23.244:35432/postgres?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&useInformationSchema=true
+    username: postgres
+    password: LCE5XASiwmGGHdJi
+  redis:
+    # 地址
+    host: 101.132.23.244
+    # 端口,默认为6379
+    port: 26739
+    # 数据库索引
+    database: 3
+    # 密码
+    password: 5TGWEjd2thWwXKGt
+    # 连接超时时间
+    timeout: 30s
+    lettuce:
+      pool:
+        # 连接池中的最小空闲连接
+        min-idle: 16
+        # 连接池中的最大空闲连接
+        max-idle: 16
+        # 连接池的最大数据库连接数
+        max-active: 16
+        # #连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-wait: -1ms
+  rabbitmq:
+    host: 39.99.215.130
+    port: 5672
+    username: tuoren
+    password: tuoren123
+    virtual-host: netpump
+wx:
+  miniapp:
+    configs:
+      - appid: wxb8924b124a426c1b  #微信小程序的appid
+        secret: 90bbf63f5d88e3c2c443de105dd94fd5  #微信小程序的Secret
+        token: smart #微信小程序消息服务器配置的token
+        aesKey: 4ywJtjRvvpFONIVN8GxPhSpi2eQraoIDZgUwn8Jmm2C #微信小程序消息服务器配置的EncodingAESKey
+        msgDataFormat: JSON
+  mp:
+    configs:
+      - appid: wxf51eb892af67a9f6
+        secret: 016d9f879d40ade7a4f094f39a49f8d7  #微信公众号的Secret
+        token: smart #微信公众号消息服务器配置的token
+        aesKey: 1elyDzYtcnefWgXzhjpMWb9tm1c3ArChNLVWlIp2Oe3 #微信公众号消息服务器配置的EncodingAESKey
+
+# 添加aliyun配置
+aliyun:
+  llmApiKey: "sk-ad17f3399ec34a949cafb4852c01e65f"
+  llmModel: "qwen3-30b-a3b-instruct-2507"
+  aliAppKey: "LTAI5tD7hBUxMPRfCAaacB5v"
+  aliAppSecret: "q9cZNGcx1dX1GXmS9gOOvqMlFeRUra"
+  imAgent:
+    workplaceId: "llm-31545r276cikjsju"
+    appId: "6d32688d63e1432abecc62a820aee5fd"
+    apiKey: "sk-ad17f3399ec34a949cafb4852c01e65f"
+#  imageAgent:
+#    workplaceId: "llm-9othch7n7k4ue9uh"
+#    appId: "8d8f926e83514ed4a9f5b62e17412f8f"
+#    apiKey: "sk-6038043b063c4f9eaadb497ec2fff50f"

+ 11 - 0
tr-test/src/main/resources/application-stream.yml

@@ -6,4 +6,15 @@ spring:
           connection-name-prefix: ${spring.application.name}
     bus:
       enabled: true # 是否开启,默认为 true
+      acknowledge: manual
+      trace:
+        enabled: false
+      rabbit:
+        bindings:
+          springCloudBusInput:
+            consumer:
+              # 允许自动创建队列
+              declare-queue: true
+              # 允许自动创建交换机
+              declare-exchange: true
 #      id: ${spring.application.name}:${server.port} # 编号