Commit 75643666 authored by qinhaitao's avatar qinhaitao

fix: 🐛 变量名修复

parent 02308ab5
......@@ -5,7 +5,7 @@ import { formatVipCbUrl, getShopVip } from '../../utils/common/vip'
import { CODE_TYPES } from '../../errorCode'
import { resultsModel, TBAPIS } from '../../sdk'
export type IInfo = 'session' | 'vipInfo' | 'taobaoOrderist' | 'credits'
export type IInfo = 'session' | 'vipInfo' | 'taobaoOrderList' | 'credits'
async function initBaseInfo(context: IContext<IParams>, baseInfos: ICheckControllerInfos, needInfos: IInfo[]) {
const handler = context?.cloud?.dataspace?.context?.handler
......@@ -40,13 +40,13 @@ async function initBaseInfo(context: IContext<IParams>, baseInfos: ICheckControl
baseInfos.vipInfo = vipInfo
}
if (needInfos.includes('taobaoOrderist') && !baseInfos.taobaoOrderist) {
const taobaoOrderist = await getUserOrderlist(
if (needInfos.includes('taobaoOrderList') && !baseInfos.taobaoOrderList) {
const taobaoOrderList = await getUserOrderlist(
context,
baseInfos?.userInfo?.createTime || baseInfos?.activityInfo?.startTime || Date.now(),
Date.now()
)
baseInfos.taobaoOrderist = taobaoOrderist
baseInfos.taobaoOrderList = taobaoOrderList
}
if (needInfos.includes('credits') && !baseInfos.credits) {
......
......@@ -29,7 +29,7 @@ interface IControllerInfos {
activityInfo: IActivityInfo
session?: string
credits?: number
taobaoOrderist?: ITaoBaoOrders[]
taobaoOrderList?: ITaoBaoOrders[]
}
interface ICheckControllerInfos extends IControllerInfos {
......
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