(silent = false)
| 250 | } |
| 251 | |
| 252 | async getSignLog(silent = false) { |
| 253 | const data = await this.request("/u/signinlog"); |
| 254 | const info = data?.member_sign_info || {}; |
| 255 | const showDay = Number(info.show_day || 0); |
| 256 | const totalCoins = info.zongCoin ?? data?.zongCoin ?? 0; |
| 257 | this.todaySigned = Number(info.sign_today || 0) === 1; |
| 258 | if (!silent) { |
| 259 | $.log(`账号[${this.index}] 签到状态: ${this.todaySigned ? "今日已签" : "今日未签"} 连续${showDay}天 积分${totalCoins}`); |
| 260 | } |
| 261 | return data; |
| 262 | } |
| 263 | |
| 264 | async doSign() { |
| 265 | if (this.todaySigned) return; |
no test coverage detected