Commit f4428a44 authored by qinhaitao's avatar qinhaitao

feat: 🎸 session

parent 43a38b6c
......@@ -36,7 +36,7 @@ export default class BaseService {
async getItemListByIds(itemIds: string, session: string): Promise<{ list: ITaoBaoItems[] }> {
const GOODSINFO =
'detail_url,approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,desc,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id,sold_quantity'
const result = await TBAPIS.getItemListByItemIds(this.context, itemIds, { fields: GOODSINFO })
const result = await TBAPIS.getItemListByItemIds(this.context, itemIds, { fields: GOODSINFO }, session)
const items = result?.items?.item || []
const list = items.map(
(v: { num_iid: string; title: string; price: string; detail_url: string; pic_url: string; desc: string }) => {
......
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