Commit 75643666 authored by qinhaitao's avatar qinhaitao

fix: 🐛 变量名修复

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