Commit 92f9a78f authored by 王波's avatar 王波

Merge branch 'c_server_ts_perf' into c_server_ts_cultivate

* c_server_ts_perf:
  fix: 🐛 变量名修复

# Conflicts:
#	v2.0/src/decorator/common/registeInfos.ts
#	v2.0/src/typings/index.d.ts
parents 9a2f01f2 75643666
......@@ -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' | 'task'
export type IInfo = 'session' | 'vipInfo' | 'taobaoOrderList' | 'credits' | 'task'
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,8 +29,8 @@ interface IControllerInfos {
activityInfo: IActivityInfo
session?: string
credits?: number
taobaoOrderist?: ITaoBaoOrders[]
task?: ITask
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