Commit 8c26d161 authored by qinhaitao's avatar qinhaitao

fix: 🐛 session bug

parent feff4cb1
......@@ -6,7 +6,8 @@ import { TaobaoTopService } from '../service'
async function initBaseInfo(context: Context, baseInfos: IControllerInfos) {
if (!baseInfos.session) {
// @ts-ignore
baseInfos.session = await new TaobaoTopService(context).getAccessTokenByOpenId()
const { session } = await new TaobaoTopService(context).getAccessTokenByOpenId()
baseInfos.session = session
}
return baseInfos
......
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