Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
acfddaca
Commit
acfddaca
authored
Nov 05, 2020
by
zhangjw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1:完善TEST环境配置
parent
70eef023
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
config/src/main/resources/config/application-test.yml
+7
-0
customer-service/src/main/java/com/ym/im/service/impl/StaffSingleChatServiceImpl.java
+0
-3
customer-service/src/main/resources/application-test.yml
+11
-10
No files found.
config/src/main/resources/config/application-test.yml
View file @
acfddaca
...
...
@@ -26,6 +26,13 @@ spring:
password
:
LSlX0JKkD34U3oY3hwI5
port
:
6379
rabbitmq
:
host
:
127.0.0.1
port
:
5672
username
:
root
password
:
TYWu154pBpvr
order-queue-name
:
push.order
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
mybatis-plus
:
configuration
:
...
...
customer-service/src/main/java/com/ym/im/service/impl/StaffSingleChatServiceImpl.java
View file @
acfddaca
...
...
@@ -16,7 +16,6 @@ import com.ym.im.util.JsonUtils;
import
com.ym.im.validation.group.*
;
import
io.netty.channel.ChannelHandlerContext
;
import
io.netty.channel.socket.nio.NioSocketChannel
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
...
...
@@ -179,11 +178,9 @@ public class StaffSingleChatServiceImpl implements ChatService {
*
* @param userId
*/
@SneakyThrows
private
void
pushNotifications
(
Long
userId
)
{
final
DeviceTokenParam
deviceTokenParam
=
channelGroup
.
USER_DEVICE_PUSH_TOKEN
.
get
(
userId
);
pushFactory
.
getService
(
deviceTokenParam
.
getDeviceType
()).
unicast
(
deviceTokenParam
.
getDeviceToken
());
}
...
...
customer-service/src/main/resources/application-test.yml
View file @
acfddaca
...
...
@@ -16,21 +16,22 @@ spring:
max-wait
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
time-between-eviction-runs-millis
:
60000
url
:
jdbc:mysql://
47.99.47.225
/customer_service?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8
username
:
root
password
:
temple123456
url
:
jdbc:mysql://
127.0.0.1
/customer_service?useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8
username
:
web
password
:
wBT7bC9BeUkE
driver-class-name
:
com.mysql.cj.jdbc.Driver
connectionInitSqls
:
set names utf8mb4
jackson
:
default-property-inclusion
:
non_null
rabbitmq
:
host
:
47.99.47.225
host
:
127.0.0.1
port
:
5672
username
:
root
password
:
root
staff-offline-Queue-Name
:
staff.offline.dev
exchange-name
:
delay.exchange.dev
password
:
TYWu154pBpvr
staff-offline-Queue-Name
:
staff.offline
order-queue-name
:
push.order
exchange-name
:
delay.exchange
listener
:
simple
:
default-requeue-rejected
:
false
...
...
@@ -38,7 +39,7 @@ spring:
database
:
0
host
:
127.0.0.1
port
:
6379
password
:
temple123456
password
:
LSlX0JKkD34U3oY3hwI5
# (重要!)设置mvc默认语言为zh_CN,默认语言必须为static.i18n目录下有的语言配置文件,否则跟随服务器语言
mvc
:
locale
:
zh_CN
...
...
@@ -47,4 +48,4 @@ spring:
log-condition-evaluation-delta
:
false
serviceUrl
:
user-info-url
:
http://47.99.47.225:8889/api/app/user/userInfo
\ No newline at end of file
user-info-url
:
http:/127.0.0.1:8889/api/app/user/userInfo
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment