()
| 125 | } |
| 126 | |
| 127 | saveCachedToken() { |
| 128 | if (!this.memberId) return; |
| 129 | const cache = readTokenCache(); |
| 130 | cache[this.account] = { |
| 131 | openId: this.openId, |
| 132 | unionId: this.unionId, |
| 133 | memberId: this.memberId, |
| 134 | phone: this.phone, |
| 135 | groupId: this.groupId, |
| 136 | agentId: this.agentId, |
| 137 | updatedAt: new Date().toISOString(), |
| 138 | }; |
| 139 | writeTokenCache(cache); |
| 140 | } |
| 141 | |
| 142 | removeCachedToken() { |
| 143 | const cache = readTokenCache(); |
no test coverage detected