()
| 142 | } |
| 143 | |
| 144 | saveCachedToken() { |
| 145 | if (!this.token) return; |
| 146 | const cache = readTokenCache(); |
| 147 | cache[this.openid] = { |
| 148 | token: this.token, |
| 149 | shopId: this.shopId, |
| 150 | shopName: this.shopName, |
| 151 | integralAccount: this.integralAccount, |
| 152 | signActivityId: this.signActivityId, |
| 153 | signTitle: this.signTitle, |
| 154 | updatedAt: new Date().toISOString(), |
| 155 | }; |
| 156 | writeTokenCache(cache); |
| 157 | } |
| 158 | |
| 159 | removeCachedToken() { |
| 160 | const cache = readTokenCache(); |
no test coverage detected