Commit 7ec28f3e by chentianzhong

外网头像处理

parent 52a87d26
......@@ -133,7 +133,12 @@ public class EmailPersonServiceImpl extends ServiceImpl<EmailPersonMapper, Email
UserDto data = senderVo.getData();
UserDto userDto = new UserDto();
if (profile.contains("wan")) {
content.setSendUserPhoto(StrUtil.isNotBlank(data.getPhoto())?data.getPhoto().replace("http://147.1.3.87", "http://172.28.1.159:82"):data.getPhoto());
if (StrUtil.isNotBlank(data.getPhoto())){
String replace = data.getPhoto()
.replace("http://147.1.3.87", "http://172.28.1.159:82")
.replace("http://147.2.3.3", "http://172.28.1.71");
content.setSendUserPhoto(replace);
}
}else{
content.setSendUserPhoto(data.getPhoto());
}
......
#配置数据源
spring:
redis:
#数据库索引
database: 0
host: 172.28.1.71
port: 6379
password: '{cipher}c11d1213bc6bc1f524d4426ff563380d01b9d6d7153c5ba566fbc489f07b5142'
timeout: 5000
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:kingbase8://172.28.1.68:54321/EMAIL_NEW
username: oa_system
password: '{cipher}c11d1213bc6bc1f524d4426ff563380d01b9d6d7153c5ba566fbc489f07b5142'
driver-class-name: com.kingbase8.Driver
driverClassName: ${jdbc.driver-class-name}
username: ${jdbc.db1.username}
password: ${jdbc.db1.password}
url: ${jdbc.db1.base-url}/EMAIL_NEW
# 初始连接数
initial-size: 20
# 最小连接数
......
......@@ -9,7 +9,7 @@
<contextName>logback</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<!-- <property name="log.path" value="/opt/oa-cloud/email/logs/"/>-->
<property name="log.path" value="/opt/services/email/logs/"/>
<property name="log.path" value="/opt/services/oa/email/logs/"/>
<!-- <property name="log.path" value="D:/seallog/"/>-->
<!--主要日志文件名-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment