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
31419c63
Commit
31419c63
authored
May 22, 2018
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改服务部分
parent
07653b40
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
+2
-1
src/main/java/com/zhiwei/readWechat/ServerClient.java
+10
-11
src/main/resources/datasource.properties
+5
-5
target/classes/datasource.properties
+5
-5
No files found.
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
View file @
31419c63
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.apache.commons.logging.LogFactory
;
import
org.bson.Document
;
import
org.bson.Document
;
import
org.springframework.stereotype.Component
;
import
com.zhiwei.util.Config
;
import
com.zhiwei.util.Config
;
import
com.zhiwei.util.ExcelUtil
;
import
com.zhiwei.util.ExcelUtil
;
...
@@ -17,7 +18,7 @@ import com.zw.entity.NewsResult;
...
@@ -17,7 +18,7 @@ import com.zw.entity.NewsResult;
import
sendmail.SendMailUtil
;
import
sendmail.SendMailUtil
;
//
@Component
@Component
public
class
PushFinanceByTime
extends
Thread
{
public
class
PushFinanceByTime
extends
Thread
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
PushFinanceByTime
.
class
);
private
static
final
Log
log
=
LogFactory
.
getLog
(
PushFinanceByTime
.
class
);
...
...
src/main/java/com/zhiwei/readWechat/ServerClient.java
View file @
31419c63
...
@@ -10,7 +10,7 @@ import java.net.Socket;
...
@@ -10,7 +10,7 @@ import java.net.Socket;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
@Component
@Component
public
class
ServerClient
extends
Thread
{
public
class
ServerClient
{
public
static
boolean
needSend
=
false
;
public
static
boolean
needSend
=
false
;
...
@@ -22,8 +22,7 @@ public class ServerClient extends Thread {
...
@@ -22,8 +22,7 @@ public class ServerClient extends Thread {
new
ServerClient
();
new
ServerClient
();
}
}
@Override
public
void
start
()
{
public
void
run
()
{
ServerSocket
server
=
null
;
ServerSocket
server
=
null
;
try
{
try
{
server
=
new
ServerSocket
(
22222
);
server
=
new
ServerSocket
(
22222
);
...
@@ -49,14 +48,14 @@ public class ServerClient extends Thread {
...
@@ -49,14 +48,14 @@ public class ServerClient extends Thread {
System
.
out
.
println
(
"继续接收"
);
System
.
out
.
println
(
"继续接收"
);
}
}
line
=
in
.
readLine
();
line
=
in
.
readLine
();
if
(
line
!=
null
)
{
//
if (line != null) {
System
.
out
.
println
(
"接收到:"
+
line
);
//
System.out.println("接收到:" + line);
try
{
//
try {
sleep
(
1000
*
60
);
// Thread.
sleep(1000 * 60);
}
catch
(
InterruptedException
e
)
{
//
} catch (InterruptedException e) {
e
.
printStackTrace
();
//
e.printStackTrace();
}
//
}
}
//
}
if
(
line
!=
null
&&
line
.
equals
(
"asdasd"
))
{
if
(
line
!=
null
&&
line
.
equals
(
"asdasd"
))
{
break
;
break
;
}
}
...
...
src/main/resources/datasource.properties
View file @
31419c63
basefile
=
/home/nbzhiwei/upload/
#
basefile=/home/nbzhiwei/upload/
#
basefile=C:/Users/admin/Desktop/
basefile
=
C:/Users/admin/Desktop/
timefileUrl
=
/home/nbzhiwei/upload/
#
timefileUrl=/home/nbzhiwei/upload/
#
timefileUrl=C:/Users/admin/Desktop/
timefileUrl
=
C:/Users/admin/Desktop/
#host=106.14.249.240
#host=106.14.249.240
#port=26807
#port=26807
#password=1q2w3e4r
#password=1q2w3e4r
...
@@ -22,7 +22,7 @@ indexName.wechat=mediaspider*
...
@@ -22,7 +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
pushMail
=
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com
,yexin@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
########################################
########################################
##wechat zan点赞阅读
##wechat zan点赞阅读
...
...
target/classes/datasource.properties
View file @
31419c63
basefile
=
/home/nbzhiwei/upload/
#
basefile=/home/nbzhiwei/upload/
#
basefile=C:/Users/admin/Desktop/
basefile
=
C:/Users/admin/Desktop/
timefileUrl
=
/home/nbzhiwei/upload/
#
timefileUrl=/home/nbzhiwei/upload/
#
timefileUrl=C:/Users/admin/Desktop/
timefileUrl
=
C:/Users/admin/Desktop/
#host=106.14.249.240
#host=106.14.249.240
#port=26807
#port=26807
#password=1q2w3e4r
#password=1q2w3e4r
...
@@ -22,7 +22,7 @@ indexName.wechat=mediaspider*
...
@@ -22,7 +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
pushMail
=
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com
,yexin@zhiweidata.com
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
########################################
########################################
##wechat zan点赞阅读
##wechat zan点赞阅读
...
...
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