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
441f323b
Commit
441f323b
authored
Dec 08, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autosession
parent
75b8caa4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1208 additions
and
5 deletions
+1208
-5
package-lock.json
server/duibats/package-lock.json
+1202
-0
package.json
server/duibats/package.json
+1
-1
taobaoTop.service.ts
server/duibats/src/service/taobaoTop.service.ts
+5
-4
No files found.
server/duibats/package-lock.json
0 → 100644
View file @
441f323b
This diff is collapsed.
Click to expand it.
server/duibats/package.json
View file @
441f323b
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"dayjs"
:
"^1.8.28"
,
"dayjs"
:
"^1.8.28"
,
"node-xlsx"
:
"^0.15.0"
,
"node-xlsx"
:
"^0.15.0"
,
"source-map-support"
:
"^0.5.19"
,
"source-map-support"
:
"^0.5.19"
,
"taobao-mini-sdk"
:
"0.
1.6
"
"taobao-mini-sdk"
:
"0.
2.4
"
},
},
"scripts"
:
{
"scripts"
:
{
"start"
:
"tsc"
,
"start"
:
"tsc"
,
...
...
server/duibats/src/service/taobaoTop.service.ts
View file @
441f323b
...
@@ -45,7 +45,7 @@ export default class ActivityTopService {
...
@@ -45,7 +45,7 @@ export default class ActivityTopService {
//淘宝top接口获取商品列表
//淘宝top接口获取商品列表
async
getItemListByIds
(
itemIds
:
string
,
seesion
:
string
)
{
async
getItemListByIds
(
itemIds
:
string
,
seesion
:
string
)
{
try
{
try
{
let
result
=
await
TBAPIS
.
getItemListByItemIds
(
this
.
context
,
seesion
,
itemIds
,
{
fields
:
GOODSINFO
})
let
result
=
await
TBAPIS
.
getItemListByItemIds
(
this
.
context
,
itemIds
,
{
fields
:
GOODSINFO
})
if
(
result
)
{
if
(
result
)
{
let
itemsData
=
{
let
itemsData
=
{
...
@@ -86,7 +86,7 @@ export default class ActivityTopService {
...
@@ -86,7 +86,7 @@ export default class ActivityTopService {
console
.
log
(
session
,
'session'
)
console
.
log
(
session
,
'session'
)
let
benefitData
=
await
TBAPIS
.
getPrizeByEname
(
this
.
context
,
session
,
ename
,
B_APP_NAME
)
let
benefitData
=
await
TBAPIS
.
getPrizeByEname
(
this
.
context
,
ename
,
B_APP_NAME
)
console
.
log
(
benefitData
,
benefitData
.
result
,
'benefitData.result.'
)
console
.
log
(
benefitData
,
benefitData
.
result
,
'benefitData.result.'
)
...
@@ -128,7 +128,7 @@ export default class ActivityTopService {
...
@@ -128,7 +128,7 @@ export default class ActivityTopService {
console
.
log
(
sellerInfo
,
'getShopId sellerInfo'
)
console
.
log
(
sellerInfo
,
'getShopId sellerInfo'
)
try
{
try
{
let
result
=
await
TBAPIS
.
getShopInfo
(
this
.
context
,
{
let
result
=
await
TBAPIS
.
getShopInfo
(
this
.
context
,
{
session
:
sellerInfo
.
session
,
//
session: sellerInfo.session,
fields
:
'sid,title,pic_path'
fields
:
'sid,title,pic_path'
})
})
console
.
log
(
result
,
'getShopId result'
)
console
.
log
(
result
,
'getShopId result'
)
...
@@ -235,7 +235,8 @@ export default class ActivityTopService {
...
@@ -235,7 +235,8 @@ export default class ActivityTopService {
data
:
{
data
:
{
article_code
:
APP_SUB_CODE
,
article_code
:
APP_SUB_CODE
,
nick
nick
}
},
autoSession
:
true
})
})
if
(
res
&&
res
[
'article_user_subscribes'
]
&&
res
[
'article_user_subscribes'
][
'article_user_subscribe'
])
if
(
res
&&
res
[
'article_user_subscribes'
]
&&
res
[
'article_user_subscribes'
][
'article_user_subscribe'
])
return
res
[
'article_user_subscribes'
][
'article_user_subscribe'
][
0
]
return
res
[
'article_user_subscribes'
][
'article_user_subscribe'
][
0
]
...
...
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