Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
0964a9e2
Commit
0964a9e2
authored
Nov 04, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix-buyfail' into 'master'
购买失败时长缩短到20分钟 See merge request
!213
parents
a0be941e
5791e74e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
BrowserTask.java
...va/com/edgec/browserbackend/browser/task/BrowserTask.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/browser/task/BrowserTask.java
View file @
0964a9e2
...
@@ -183,7 +183,7 @@ public class BrowserTask {
...
@@ -183,7 +183,7 @@ public class BrowserTask {
* 购买后,长时间未能成功的ip资源视为购买失败。
* 购买后,长时间未能成功的ip资源视为购买失败。
* 购买时长超过20分钟的ip资源释放,并将购买花销退回账户余额。
* 购买时长超过20分钟的ip资源释放,并将购买花销退回账户余额。
*/
*/
if
(
result
==
false
&&
(
ipResource
.
getPurchasedTime
()
<
Instant
.
now
().
minusSeconds
(
7
200
).
toEpochMilli
()))
{
if
(
result
==
false
&&
(
ipResource
.
getPurchasedTime
()
<
Instant
.
now
().
minusSeconds
(
1
200
).
toEpochMilli
()))
{
log
.
info
(
logs
+
"ip resource purchase failure, {}"
,
ipResource
);
log
.
info
(
logs
+
"ip resource purchase failure, {}"
,
ipResource
);
IpChargeRequestDto
ipChargeRequestDto
=
buildIpChargeRequestDto
(
ipResource
,
3
,
0
);
IpChargeRequestDto
ipChargeRequestDto
=
buildIpChargeRequestDto
(
ipResource
,
3
,
0
);
accountService
.
chargeByMoney
(
ipResource
.
getOwner
(),
-
ipResource
.
getPrice
(),
ipChargeRequestDto
);
accountService
.
chargeByMoney
(
ipResource
.
getOwner
(),
-
ipResource
.
getPrice
(),
ipChargeRequestDto
);
...
...
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