()
| 218 | } |
| 219 | |
| 220 | async queryMember() { |
| 221 | const member = await this.miniRequest("GET", "/member/info", { sessionId: this.sessionId }); |
| 222 | const base = await this.miniRequest("GET", "/member/baseInfo", { sessionId: this.sessionId }).catch(() => ({})); |
| 223 | this.memberInfo = member.data || {}; |
| 224 | this.baseInfo = base.data || {}; |
| 225 | const userName = this.memberInfo.userName || this.baseInfo.userName || "未知"; |
| 226 | const phone = this.baseInfo.pnumber ? `,手机号: ${this.baseInfo.pnumber}` : ""; |
| 227 | this.log( |
| 228 | `用户信息: ${userName}${phone},积分: ${this.memberInfo.pointAmount ?? 0},成长值: ${ |
| 229 | this.memberInfo.growthValue ?? 0 |
| 230 | },等级: ${this.memberInfo.gradeCode || "未知"}` |
| 231 | ); |
| 232 | } |
| 233 | |
| 234 | async queryEntrance() { |
| 235 | const result = await this.miniRequest("GET", "/activity/signIn/entrance", { sessionId: this.sessionId }); |
no test coverage detected