From c6b841fb8f9941d3a2c871487a7188d61214dda1 Mon Sep 17 00:00:00 2001 From: ArvinLovegood Date: Wed, 9 Jul 2025 18:13:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(sponsor):=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E8=B5=9E=E5=8A=A9=E8=AE=A1=E5=88=92=E5=B9=B6=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E8=B5=9E=E5=8A=A9=E7=A0=81=E9=AA=8C=E8=AF=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 about.vue 和 README.md 中添加新的 VIP2 赞助计划 - 在 App.d.ts 和 App.js 中添加 CheckSponsorCode函数 - 在 app.go 中实现 CheckSponsorCode 方法,用于验证赞助码 - 在 settings.vue 中集成赞助码验证功能,更新配置时进行验证 - 优化赞助码输入界面,添加验证按钮 --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 778d6c6..2f25caa 100644 --- a/app.go +++ b/app.go @@ -219,12 +219,12 @@ func (a *App) CheckUpdate() { } vipStartTime, err := time.ParseInLocation("2006-01-02 15:04:05", a.SponsorInfo["vipStartTime"].(string), time.Local) vipEndTime, err := time.ParseInLocation("2006-01-02 15:04:05", a.SponsorInfo["vipEndTime"].(string), time.Local) + vipAuthTime, err := time.ParseInLocation("2006-01-02 15:04:05", a.SponsorInfo["vipAuthTime"].(string), time.Local) if err != nil { logger.SugaredLogger.Error(err.Error()) return } isVip := false - vipAuthTime, err := time.ParseInLocation("2006-01-02 15:04:05", a.SponsorInfo["vipAuthTime"].(string), time.Local) if time.Now().After(vipAuthTime) && time.Now().After(vipStartTime) && time.Now().Before(vipEndTime) { isVip = true