From de204751ac5b1ceb51b07914bc8fe5d3e8a11800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=80=E5=B0=BC=E9=BE=9F?= <365252428@qq.com> Date: Tue, 8 Jul 2025 15:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleExtend.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index 0cb9db8..55decb3 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -32,7 +32,8 @@ func AddBundleExtendRecord(data model.BundleExtensionRecords) error { et, _ := time.ParseInLocation(time.DateTime, record.ExpirationTime, loc) expireTime = et } else { - expireTime = time.Now() + t, _ := time.Parse("2006-01-02 15:04:05", record.PayTime) + expireTime = t logger.Infof("过期时间为空,使用默认过期时间" + expireTime.Format(time.DateTime)) }