|
@@ -64,8 +64,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async getUserTemp(uid) {
|
|
|
- if (!this.userTemp[uid])
|
|
|
- this.userTemp[uid] = await this.ctx.service.projectAccount.getAccountInfoById(uid);
|
|
|
+ if (!this.userTemp[uid]) this.userTemp[uid] = await this.ctx.service.projectAccount.getAccountInfoById(uid);
|
|
|
return this.userTemp[uid];
|
|
|
}
|
|
|
|
|
@@ -75,7 +74,7 @@ module.exports = app => {
|
|
|
for (const d of datas) {
|
|
|
for (const a of d.attachment) {
|
|
|
delete a.filepath;
|
|
|
- a.username = await this.getUserTemp.name;
|
|
|
+ a.username = (await this.getUserTemp(a.uid)).name;
|
|
|
}
|
|
|
}
|
|
|
}
|