|
@@ -153,6 +153,10 @@ module.exports = app => {
|
|
|
if (msgInfo && msgInfo.type === 1 && msgInfo.project_id !== ctx.session.sessionProject.id) {
|
|
|
throw '非该项目通知无权查看';
|
|
|
}
|
|
|
+ if (msgInfo) {
|
|
|
+ msgInfo.content = JSON.parse(JSON.stringify(msgInfo.content).replace(/\\r\\n/g, '<br>').replace(/\\"/g, '"').replace(/'/g, ''').replace(/\\t/g, '	'));
|
|
|
+ msgInfo.files = await this.ctx.service.messageAtt.getAtt(msgInfo.id);
|
|
|
+ }
|
|
|
|
|
|
const total = type === 1 ?
|
|
|
await ctx.service.message.count({ project_id: ctx.session.sessionProject.id, type }) :
|