Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
email
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
陈天仲
email
Commits
87273967
Commit
87273967
authored
May 06, 2023
by
chentianzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
e29f89de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
6 deletions
+72
-6
src/main/java/com/zq/email/service/impl/EmailAttachServiceImpl.java
+4
-4
src/main/resources/application-wanpro.yml
+66
-0
src/main/resources/logback-spring.xml
+2
-2
No files found.
src/main/java/com/zq/email/service/impl/EmailAttachServiceImpl.java
View file @
87273967
...
@@ -115,11 +115,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
...
@@ -115,11 +115,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
if
(
profile
.
equals
(
"product"
)
||
profile
.
equals
(
"test"
))
{
if
(
profile
.
equals
(
"product"
)
||
profile
.
equals
(
"test"
))
{
download
=
"http://147.1.3.87/attwjsf_email"
+
path
;
download
=
"http://147.1.3.87/attwjsf_email"
+
path
;
}
else
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
)){
}
else
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
)){
download
=
"http://172.28.1.159:8
2
/attwjsf_yj"
+
path
;
download
=
"http://172.28.1.159:8
3
/attwjsf_yj"
+
path
;
}
}
}
else
{
}
else
{
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
))
{
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
))
{
download
.
replaceAll
(
"147.2.3.3"
,
"172.28.1.7
0
"
);
download
.
replaceAll
(
"147.2.3.3"
,
"172.28.1.7
1
"
);
}
}
}
}
return
download
;
return
download
;
...
@@ -136,11 +136,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
...
@@ -136,11 +136,11 @@ public class EmailAttachServiceImpl extends ServiceImpl<EmailAttachMapper, Email
if
(
profile
.
equals
(
"product"
)
||
profile
.
equals
(
"test"
))
{
if
(
profile
.
equals
(
"product"
)
||
profile
.
equals
(
"test"
))
{
download
=
"http://147.1.3.87/attwjsf_email"
+
path
;
download
=
"http://147.1.3.87/attwjsf_email"
+
path
;
}
else
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
)){
}
else
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
)){
download
=
"http://172.28.1.159:8
2
/attwjsf_yj"
+
path
;
download
=
"http://172.28.1.159:8
3
/attwjsf_yj"
+
path
;
}
}
}
else
{
}
else
{
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
))
{
if
(
profile
.
equals
(
"wanpro"
)
||
profile
.
equals
(
"wantest"
))
{
download
.
replaceAll
(
"147.2.3.3"
,
"172.28.1.7
0
"
);
download
.
replaceAll
(
"147.2.3.3"
,
"172.28.1.7
1
"
);
}
}
}
}
return
download
;
return
download
;
...
...
src/main/resources/application-wanpro.yml
0 → 100644
View file @
87273967
#配置数据源
spring
:
redis
:
#数据库索引
database
:
0
host
:
172.28.1.71
port
:
6379
password
:
zq4208!@#$
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
:
GXfy/2014!@#$
driver-class-name
:
com.kingbase8.Driver
# 初始连接数
initial-size
:
20
# 最小连接数
min-idle
:
20
# 最大连接数
max-active
:
50
# 获取连接超时时间
max-wait
:
5000
# 连接有效性检测时间
time-between-eviction-runs-millis
:
60000
# 连接在池中最小生存的时间
min-evictable-idle-time-millis
:
300000
# 连接在池中最大生存的时间
max-evictable-idle-time-millis
:
900000
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
# 检测连接是否有效
validation-query
:
select 1
# 配置监控统计
webStatFilter
:
enabled
:
true
#安全配置
stat-view-servlet
:
enabled
:
true
url-pattern
:
/druid/*
reset-enable
:
false
login-username
:
admin
login-password
:
GXfy2021
allow
:
127.0.0.1,147.1.*.*
filter
:
stat
:
enabled
:
true
# 记录慢SQL
log-slow-sql
:
true
slow-sql-millis
:
1000
merge-sql
:
true
wall
:
config
:
multi-statement-allow
:
true
#是否开启 swagger-ui
swagger
:
enabled
:
false
sms
:
app-id
:
oa_new
app-key
:
OA@2022!
url
:
http://172.28.1.71:9888/ums/inside_new/sendBatch
\ No newline at end of file
src/main/resources/logback-spring.xml
View file @
87273967
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<contextName>
logback
</contextName>
<contextName>
logback
</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 -->
<property
name=
"log.path"
value=
"/opt/oa-cloud/email/logs/"
/
>
<!-- <property name="log.path" value="/opt/oa-cloud/email/logs/"/>--
>
<!-- <property name="log.path" value="/opt/services/oa-new/email/logs/"/>--
>
<property
name=
"log.path"
value=
"/opt/services/oa/email/logs/"
/
>
<!-- <property name="log.path" value="D:/seallog/"/>-->
<!-- <property name="log.path" value="D:/seallog/"/>-->
<!--主要日志文件名-->
<!--主要日志文件名-->
...
...
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