()
| 4126 | } |
| 4127 | } |
| 4128 | async refreshNoteToken() { |
| 4129 | if (!this.authToken || "00" === this.authToken) return !1; |
| 4130 | const e = await this.api.refreshNoteToken(); |
| 4131 | return this.noteToken = e.headers?.NOTE_TOKEN || e.headers?.note_token || "", this.noteAuth = e.headers?.APP_AUTH || e.headers?.app_auth || "", !(!this.noteToken || !this.noteAuth) |
| 4132 | } |
| 4133 | async createDefaultNote() { |
| 4134 | if (!await this.refreshNoteToken()) return void this.log("跳过创建笔记: 缺少 authToken"); |
| 4135 | const e = { |