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' ...@@ -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' | 'task' export type IInfo = 'session' | 'vipInfo' | 'taobaoOrderList' | 'credits' | 'task'
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,8 +29,8 @@ interface IControllerInfos { ...@@ -29,8 +29,8 @@ interface IControllerInfos {
activityInfo: IActivityInfo activityInfo: IActivityInfo
session?: string session?: string
credits?: number credits?: number
taobaoOrderist?: ITaoBaoOrders[]
task?: ITask task?: ITask
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