Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
585780c4
Commit
585780c4
authored
Sep 27, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of t-git.51gjj.com:fangbin/51business
parents
07e51d4b
a7a3ee2a
Pipeline
#14352
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
order.js
app/service/credit/order.js
+2
-2
No files found.
app/service/credit/order.js
View file @
585780c4
...
...
@@ -210,7 +210,7 @@ class OrderService extends Service {
const
price
=
await
this
.
updateOrderPrice
(
order
);
const
type
=
order
.
type
;
const
countdown
=
moment
(
order
.
order_time
).
format
(
'X'
)
-
moment
(
new
Date
()).
format
(
'X'
)
+
8640
0
;
const
countdown
=
moment
(
order
.
order_time
).
format
(
'X'
)
-
moment
(
new
Date
()).
format
(
'X'
)
+
8640
2
;
const
ret
=
{
price
,
original_price
:
order
.
price
,
...
...
@@ -298,7 +298,7 @@ class OrderService extends Service {
}
const
expire_time
=
moment
(
order
.
order_time
).
valueOf
()
+
24
*
3600
*
1000
;
const
now_time
=
moment
().
valueOf
();
if
(
expire_time
<
now_time
)
{
if
(
expire_time
<
=
now_time
)
{
ctx
.
failed
(
'order_failure'
);
//订单失效,前端会取这个判断跳转
}
...
...
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