Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
938a335e
Commit
938a335e
authored
Apr 23, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二版
parent
d40b99e5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
workspace.xml
.idea/workspace.xml
+0
-0
pom.xml
pom.xml
+2
-2
AccountFlowRestrictServiceImpl.java
...ava/tkio/service/impl/AccountFlowRestrictServiceImpl.java
+1
-1
AccountTask.java
src/main/java/tkio/task/AccountTask.java
+16
-16
applicationContext-schedule.xml
src/main/resources/spring/applicationContext-schedule.xml
+1
-1
No files found.
.idea/workspace.xml
View file @
938a335e
This diff is collapsed.
Click to expand it.
pom.xml
View file @
938a335e
...
...
@@ -69,7 +69,7 @@
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://1
72.31.1.122
:9010
</report.url>
<report.url>
http://1
0.3.20.41
:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
...
...
@@ -125,7 +125,7 @@
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://
172.31.23.181:8003
</report.url>
<report.url>
http://
localhost:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
<redis.ip.requesttimes>
5
</redis.ip.requesttimes>
...
...
src/main/java/tkio/service/impl/AccountFlowRestrictServiceImpl.java
View file @
938a335e
...
...
@@ -192,7 +192,7 @@ public class AccountFlowRestrictServiceImpl implements AccountFlowRestrictServic
}
//是否流量用尽
if
(
!
ioFlag
&&
!
trackFlag
){
if
(
trackFlag
){
accountRestrict4Web
.
setIOFlowNotified
(
false
);
}
else
{
accountRestrict4Web
.
setIOFlowNotified
(
true
);
...
...
src/main/java/tkio/task/AccountTask.java
View file @
938a335e
...
...
@@ -90,22 +90,22 @@ public class AccountTask {
account4Web
.
setTrackLimit
(
restrict4Web
.
getTrackLimit
());
account4Web
.
setIoStatus
(
restrict4Web
.
getAllowBehavior
());
account4Web
.
setTrackStatus
(
restrict4Web
.
getTrackFlowNotified
());
double
f
=
1.0
;
if
((
account4Web
.
getIo
().
doubleValue
()
!=
0
)
&&
(
null
!=
account4Web
.
getIoLimit
())){
if
(
account4Web
.
getIo
().
doubleValue
()
>
account4Web
.
getIoLimit
().
doubleValue
()){
account4Web
.
setIoStatus
(
false
);
account4Web
.
setStatus
(
"流量用尽"
);
}
else
{
account4Web
.
setIoStatus
(
true
);
}
}
else
{
account4Web
.
setIoStatus
(
true
);
}
if
(
account4Web
.
getIoLimit
().
doubleValue
()
==
-
1
){
account4Web
.
setIoStatus
(
true
);
account4Web
.
setStatus
(
"已激活"
);
}
//
double f = 1.0;
//
if((account4Web.getIo().doubleValue() != 0) && (null != account4Web.getIoLimit())){
//
if(account4Web.getIo().doubleValue() > account4Web.getIoLimit().doubleValue()){
//
account4Web.setIoStatus(false);
//
account4Web.setStatus("流量用尽");
//
}else{
//
account4Web.setIoStatus(true);
//
}
//
}else {
//
account4Web.setIoStatus(true);
//
}
//
if(account4Web.getIoLimit().doubleValue() == -1){
//
account4Web.setIoStatus(true);
//
account4Web.setStatus("已激活");
//
//
}
if
(
account4Web
.
getTrackLimit
().
doubleValue
()
==
-
1
){
account4Web
.
setTrackStatus
(
true
);
account4Web
.
setStatus
(
"已激活"
);
...
...
src/main/resources/spring/applicationContext-schedule.xml
View file @
938a335e
...
...
@@ -12,7 +12,7 @@
<bean
id=
"tkioAccountTask"
class=
"tkio.task.AccountTask"
></bean>
<task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
10
10 * * ?"
/>
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
45
10 * * ?"
/>
</task:scheduled-tasks>
<bean
id=
"tkioNoticeTask"
class=
"tkio.task.NoticeTask"
></bean>
...
...
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