MaiXinRong 2 年之前
父节点
当前提交
c339b3a456
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,