MaiXinRong 2 years ago
parent
commit
c339b3a456
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/global_log.js

+ 1 - 1
app/service/global_log.js

@@ -22,7 +22,7 @@ module.exports = app => {
         }
 
         async requestLog() {
-            if (!this.ctx.session) return;
+            if (!this.ctx.session || !this.ctx.session.sessionProject || !this.ctx.session.sessionUser) return;
 
             await this.db.insert(this.tableName, {
                 id: this.ctx.logId,