Commit 441f323b authored by zhaofei's avatar zhaofei

autosession

parent 75b8caa4
This diff is collapsed.
......@@ -11,7 +11,7 @@
"dayjs": "^1.8.28",
"node-xlsx": "^0.15.0",
"source-map-support": "^0.5.19",
"taobao-mini-sdk": "0.1.6"
"taobao-mini-sdk": "0.2.4"
},
"scripts": {
"start": "tsc",
......
......@@ -45,7 +45,7 @@ export default class ActivityTopService {
//淘宝top接口获取商品列表
async getItemListByIds(itemIds: string, seesion: string) {
try {
let result = await TBAPIS.getItemListByItemIds(this.context, seesion, itemIds, { fields: GOODSINFO })
let result = await TBAPIS.getItemListByItemIds(this.context, itemIds, { fields: GOODSINFO })
if (result) {
let itemsData = {
......@@ -86,7 +86,7 @@ export default class ActivityTopService {
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.')
......@@ -128,7 +128,7 @@ export default class ActivityTopService {
console.log(sellerInfo, 'getShopId sellerInfo')
try {
let result = await TBAPIS.getShopInfo(this.context, {
session: sellerInfo.session,
// session: sellerInfo.session,
fields: 'sid,title,pic_path'
})
console.log(result, 'getShopId result')
......@@ -235,7 +235,8 @@ export default class ActivityTopService {
data: {
article_code: APP_SUB_CODE,
nick
}
},
autoSession: true
})
if (res && res['article_user_subscribes'] && res['article_user_subscribes']['article_user_subscribe'])
return res['article_user_subscribes']['article_user_subscribe'][0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment