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,