Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
66629755
Commit
66629755
authored
Jan 26, 2021
by
王波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单
parent
e51cef0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
updateGrowOrderGoods.ts
v2.0/src/utils/common/update/updateGrowOrderGoods.ts
+7
-4
No files found.
v2.0/src/utils/common/update/updateGrowOrderGoods.ts
View file @
66629755
...
...
@@ -62,9 +62,13 @@ export default async function updateGrowOrderGoods(
//筛选符合任务的订单并添加到下单表
let
targetOrders
=
[]
orderResult
.
forEach
(
v
=>
{
// @ts-ignore
// 商品订单包含目标商品 且orderId为新订单
if
(
itemIdsArr
.
includes
(
v
.
itemId
)
&&
!
orderList
.
some
(
order
=>
order
.
orderId
===
v
.
orderId
))
{
if
(
// 商品订单包含目标商品 且orderId为新订单
itemIdsArr
.
includes
(
v
.
itemId
)
&&
// @ts-ignore
!
orderList
.
some
(
order
=>
order
.
orderId
===
v
.
orderId
)
&&
!
targetOrders
.
some
(
order
=>
order
.
orderId
===
v
.
orderId
)
)
{
if
(
targetOrders
.
length
+
completeTimes
>=
times
)
{
return
}
...
...
@@ -73,7 +77,6 @@ export default async function updateGrowOrderGoods(
activityId
:
activityInfo
.
_id
,
itemId
:
v
.
itemId
,
orderId
:
v
.
orderId
,
payTime
:
v
.
payTime
,
tId
:
v
.
tId
,
createTime
:
Date
.
now
(),
createDay
:
today
...
...
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