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
f156fe12
Commit
f156fe12
authored
Oct 15, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
订单增加可选链
parent
58bbff94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
noVip.ts
v2.0/src/decorator/noVip.ts
+1
-1
getUserOrderlist.ts
v2.0/src/utils/package/getUserOrderlist.ts
+1
-1
No files found.
v2.0/src/decorator/noVip.ts
View file @
f156fe12
/** @format */
export
const
noVip
=
(
target
:
any
,
name
:
string
,
descriptor
:
PropertyDescriptor
)
=>
{
export
const
noVip
Info
=
(
target
:
any
,
name
:
string
,
descriptor
:
PropertyDescriptor
)
=>
{
const
method
=
descriptor
.
value
descriptor
.
value
=
async
function
(...
args
:
any
[])
{
const
[
context
,
otherArgs
=
{}]
=
args
...
...
v2.0/src/utils/package/getUserOrderlist.ts
View file @
f156fe12
...
...
@@ -35,7 +35,7 @@ export const getUserOrderlist = async (context, queryStartTime, queryEndTime?, s
const
{
trade
}
=
orderResult
.
trades
trade
.
forEach
(
i
=>
{
if
(
TAOBAO_SUCCESS_ORDER_STATUS
.
includes
(
i
.
status
))
{
i
.
orders
.
order
.
forEach
(
s
=>
{
i
?.
orders
?.
order
?
.
forEach
(
s
=>
{
results
.
push
({
payTime
:
i
.
pay_time
,
itemId
:
s
.
num_iid
,
...
...
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