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
75643666
Commit
75643666
authored
Mar 19, 2021
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
变量名修复
parent
02308ab5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
registeInfos.ts
v2.0/src/decorator/common/registeInfos.ts
+4
-4
index.d.ts
v2.0/src/typings/index.d.ts
+1
-1
No files found.
v2.0/src/decorator/common/registeInfos.ts
View file @
75643666
...
@@ -5,7 +5,7 @@ import { formatVipCbUrl, getShopVip } from '../../utils/common/vip'
...
@@ -5,7 +5,7 @@ import { formatVipCbUrl, getShopVip } from '../../utils/common/vip'
import
{
CODE_TYPES
}
from
'../../errorCode'
import
{
CODE_TYPES
}
from
'../../errorCode'
import
{
resultsModel
,
TBAPIS
}
from
'../../sdk'
import
{
resultsModel
,
TBAPIS
}
from
'../../sdk'
export
type
IInfo
=
'session'
|
'vipInfo'
|
'taobaoOrderist'
|
'credits'
export
type
IInfo
=
'session'
|
'vipInfo'
|
'taobaoOrder
L
ist'
|
'credits'
async
function
initBaseInfo
(
context
:
IContext
<
IParams
>
,
baseInfos
:
ICheckControllerInfos
,
needInfos
:
IInfo
[])
{
async
function
initBaseInfo
(
context
:
IContext
<
IParams
>
,
baseInfos
:
ICheckControllerInfos
,
needInfos
:
IInfo
[])
{
const
handler
=
context
?.
cloud
?.
dataspace
?.
context
?.
handler
const
handler
=
context
?.
cloud
?.
dataspace
?.
context
?.
handler
...
@@ -40,13 +40,13 @@ async function initBaseInfo(context: IContext<IParams>, baseInfos: ICheckControl
...
@@ -40,13 +40,13 @@ async function initBaseInfo(context: IContext<IParams>, baseInfos: ICheckControl
baseInfos
.
vipInfo
=
vipInfo
baseInfos
.
vipInfo
=
vipInfo
}
}
if
(
needInfos
.
includes
(
'taobaoOrder
ist'
)
&&
!
baseInfos
.
taobaoOrder
ist
)
{
if
(
needInfos
.
includes
(
'taobaoOrder
List'
)
&&
!
baseInfos
.
taobaoOrderL
ist
)
{
const
taobaoOrderist
=
await
getUserOrderlist
(
const
taobaoOrder
L
ist
=
await
getUserOrderlist
(
context
,
context
,
baseInfos
?.
userInfo
?.
createTime
||
baseInfos
?.
activityInfo
?.
startTime
||
Date
.
now
(),
baseInfos
?.
userInfo
?.
createTime
||
baseInfos
?.
activityInfo
?.
startTime
||
Date
.
now
(),
Date
.
now
()
Date
.
now
()
)
)
baseInfos
.
taobaoOrder
ist
=
taobaoOrder
ist
baseInfos
.
taobaoOrder
List
=
taobaoOrderL
ist
}
}
if
(
needInfos
.
includes
(
'credits'
)
&&
!
baseInfos
.
credits
)
{
if
(
needInfos
.
includes
(
'credits'
)
&&
!
baseInfos
.
credits
)
{
...
...
v2.0/src/typings/index.d.ts
View file @
75643666
...
@@ -29,7 +29,7 @@ interface IControllerInfos {
...
@@ -29,7 +29,7 @@ interface IControllerInfos {
activityInfo
:
IActivityInfo
activityInfo
:
IActivityInfo
session
?:
string
session
?:
string
credits
?:
number
credits
?:
number
taobaoOrderist
?:
ITaoBaoOrders
[]
taobaoOrder
L
ist
?:
ITaoBaoOrders
[]
}
}
interface
ICheckControllerInfos
extends
IControllerInfos
{
interface
ICheckControllerInfos
extends
IControllerInfos
{
...
...
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