Commit 040b48e0 authored by qinhaitao's avatar qinhaitao

opt

parent 5c0959c2
......@@ -105,7 +105,7 @@ const saveActivityInfoByHasId = async function (context) {
}
const taskList = Object.keys(tasks).map(type => {
return {
...tasks[type]
...tasks[type],
type
}
})
......
......@@ -58,7 +58,7 @@ class ActivityTopService {
let result = await this.activitySellerDao.find({
openId,
});
return { session: result.accessToken || this.context.accessToken };
return { session:(result.length && result[0].accessToken) || this.context.accessToken };
}
//淘宝top接口获取商品列表
......
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