|
@@ -23,11 +23,11 @@ module.exports = app => {
|
|
|
*/
|
|
|
async addProjectLog(transaction, type, status, msg, tid = 0) {
|
|
|
const { ctx } = this;
|
|
|
- const ipMsg = await ctx.helper.getUserIPMsg();
|
|
|
+ const ipMsg = await this.ctx.helper.getUserIPMsg();
|
|
|
const payload = {
|
|
|
uid: ctx.session.sessionUser.accountId,
|
|
|
pid: ctx.session.sessionProject.id,
|
|
|
- tid: ctx.tender.id ? ctx.tender.id : tid,
|
|
|
+ tid: ctx.tender && ctx.tender.id ? ctx.tender.id : tid,
|
|
|
type,
|
|
|
status,
|
|
|
msg,
|