()
| 223 | } |
| 224 | |
| 225 | ensureToken() { |
| 226 | if (!this.token) this.token = this.getCached().token || ""; |
| 227 | if (!this.token) { |
| 228 | throw new Error("缺少 folidayMallToken。请将变量设置为 openid#token,或设置 fuyouhui_token。"); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | async getMemberInfo() { |
| 233 | const data = assertOk( |