崔宝铖提交

This commit is contained in:
cuibaocheng 2020-09-11 17:26:37 +08:00
parent 5a3018ab9e
commit cc5867d99e
2 changed files with 42 additions and 12 deletions

View File

@ -389,7 +389,7 @@ public class NewsContentServiceImpl extends BaseService implements INewsContentS
// 第二步 查找配置的标签项
List<NewsLabelConfigDTO> configList = iNewsLabelConfigService.getNewsLabelConfigByNewsContentId(appDTO.getNewsContentId());
appDTO.setNewsContentLabelList(configList);
// 第三步 是否收藏
// 第三步 是否收藏
if(!StringUtil.isEmpty(userId)) {
NewsContentCollectDTO likeDTO = iNewsContentCollectService.getNewsContentCollectByNewsContentIdAndUserId(userId, appDTO.getNewsContentId());
if(likeDTO == null) {

View File

@ -1,8 +1,38 @@
# 访问其他项目
template:
titile: 模板项目
creatTemplate-url: http://192.168.0.111:8081/template/resource/template/creattemplaterelease
# 智慧网闸配置
net-management:
config-path: D:\\net_manager_libs\\
so-path: D:\\net_manager_libs\\
news:
nginxAddress: http://192.168.0.104/ # Nginx地址
nginxAddress: http://192.168.0.115:8089/ # Nginx地址
mainServerAddress: # 门户服务器地址
serverAddress: http://192.168.0.104:8082/news/ # 新闻服务器地址
serverAddress: http://192.168.0.115:8082/news/ # 新闻服务器地址
socket:
central-control:
# 是否激活
active: false
client:
client-id: f8190a1a94354105b3748ad3ec40a64d
client-secret: WGVJZmhBMHJ3UmFZMDhtZ1U0NGluUEx4SFVZU3pjL2Q5R3k2RkFPd0RvTW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
host: 127.0.0.1
port: 8888
# 最大重连次数
max-reconnect-count: 20
# 重连时间差
reconnect-time-step: 1
# 心跳时间
delay-ping-seconds: 3
# 开启上报服务器数据
send-client-info-active: false
# 上报服务器数据时间
send-client-info-second: 30
server:
port: 8082
url: http://192.168.0.104:8082/news
@ -76,21 +106,21 @@ file:
# 安全
security:
oauth2:
oauth-server: https://www.wgink.ink/usercenter
oauth-server: http://192.168.0.113:7001/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client:
client-id: b05e18273f824e40883c0405a10da0f4
client-secret: dG5uQ3FDVEI1VUpZOER3bDFpMnc4SlJlOERCbzhSaS9LNVE0MmI1T3BpTW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg
user-authorization-uri: ${security.oauth2.oauth-server}/oauth/authorize
access-token-uri: ${security.oauth2.oauth-server}/oauth/token
client-id: f8190a1a94354105b3748ad3ec40a64d
client-secret: WGVJZmhBMHJ3UmFZMDhtZ1U0NGluUEx4SFVZU3pjL2Q5R3k2RkFPd0RvTW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
grant-type: authorization_code
resource:
jwt:
key-uri: ${security.oauth2.oauth-server}/oauth/token_key
token-info-uri: ${security.oauth2.oauth-server}/oauth/check_token
key-uri: ${security.oauth2.oauth-server}/oauth_client/token_key
token-info-uri: ${security.oauth2.oauth-server}/oauth_client/check_token
user-info-uri: ${security.oauth2.oauth-server}/user
authorization:
check-token-access: ${security.oauth2.oauth-server}/oauth/token_key
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
api-path:
user-center: ${security.oauth2.oauth-server}