Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
change4weixin
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjinzhu
change4weixin
Commits
1047ba32
Commit
1047ba32
authored
May 12, 2018
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邮箱修改
parent
3a03e176
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
+7
-6
src/main/resources/datasource.properties
+1
-0
target/classes/datasource.properties
+1
-0
No files found.
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
View file @
1047ba32
...
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
...
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
import
com.zhiwei.orm.BeanFactory
;
import
com.zhiwei.orm.BeanFactory
;
import
com.zhiwei.service.Services
;
import
com.zhiwei.service.Services
;
import
com.zhiwei.util.Config
;
import
com.zhiwei.util.ExcelUtil
;
import
com.zhiwei.util.ExcelUtil
;
import
com.zhiwei.util.MongoConnection
;
import
com.zhiwei.util.MongoConnection
;
import
com.zhiwei.util.ReadExcel
;
import
com.zhiwei.util.ReadExcel
;
...
@@ -111,17 +112,17 @@ public class PushFinanceByTime extends Thread {
...
@@ -111,17 +112,17 @@ public class PushFinanceByTime extends Thread {
String
url
)
{
String
url
)
{
try
{
try
{
new
ExcelUtil
().
pushDataWithFinanceLong
(
list
,
cal
.
getTime
(),
url
);
new
ExcelUtil
().
pushDataWithFinanceLong
(
list
,
cal
.
getTime
(),
url
);
SendMailUtil
.
sendMessage
(
"949131080@qq.com"
,
url
,
"金融"
);
for
(
String
mail:
Config
.
getVal
(
"pushMail"
).
split
(
","
))
{
SendMailUtil
.
sendMessage
(
"yuhualong@zhiweidata.com"
,
url
,
"金融"
);
SendMailUtil
.
sendMessage2
(
mail
,
url
,
"金融"
);
SendMailUtil
.
sendMessage
(
"ligaodie@zhiweidata.com"
,
url
,
"金融"
);
}
ExcelUtil
.
delete
(
url
);
ExcelUtil
.
delete
(
url
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"一号邮箱发送失败,尝试二号邮箱{}"
,
e
);
log
.
error
(
"一号邮箱发送失败,尝试二号邮箱{}"
,
e
);
try
{
try
{
new
ExcelUtil
().
pushDataWithFinanceLong
(
list
,
cal
.
getTime
(),
url
);
new
ExcelUtil
().
pushDataWithFinanceLong
(
list
,
cal
.
getTime
(),
url
);
SendMailUtil
.
sendMessage2
(
"949131080@qq.com"
,
url
,
"金融"
);
for
(
String
mail:
Config
.
getVal
(
"pushMail"
).
split
(
","
))
{
SendMailUtil
.
sendMessage2
(
"yuhualong@zhiweidata.com"
,
url
,
"金融"
);
SendMailUtil
.
sendMessage2
(
mail
,
url
,
"金融"
);
SendMailUtil
.
sendMessage2
(
"ligaodie@zhiweidata.com"
,
url
,
"金融"
);
}
ExcelUtil
.
delete
(
url
);
ExcelUtil
.
delete
(
url
);
}
catch
(
Exception
e2
)
{
}
catch
(
Exception
e2
)
{
log
.
error
(
"二号邮箱发送错误{}"
,
e
);
log
.
error
(
"二号邮箱发送错误{}"
,
e
);
...
...
src/main/resources/datasource.properties
View file @
1047ba32
...
@@ -22,6 +22,7 @@ indexName.wechat=mediaspider*
...
@@ -22,6 +22,7 @@ indexName.wechat=mediaspider*
indexName.weibo
=
network*
indexName.weibo
=
network*
type
=
media
type
=
media
openid
=
oTc_rssM56GjwdRgwTD2dfQMq4Rg
openid
=
oTc_rssM56GjwdRgwTD2dfQMq4Rg
pushMail
=
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
########################################
########################################
target/classes/datasource.properties
View file @
1047ba32
...
@@ -22,6 +22,7 @@ indexName.wechat=mediaspider*
...
@@ -22,6 +22,7 @@ indexName.wechat=mediaspider*
indexName.weibo
=
network*
indexName.weibo
=
network*
type
=
media
type
=
media
openid
=
oTc_rssM56GjwdRgwTD2dfQMq4Rg
openid
=
oTc_rssM56GjwdRgwTD2dfQMq4Rg
pushMail
=
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
########################################
########################################
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