Commit 441f323b authored by zhaofei's avatar zhaofei

autosession

parent 75b8caa4
This diff is collapsed.
...@@ -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",
......
...@@ -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]
......
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