fix: 会员状态/订单支付时间显示(gtime.Format 需用 Y-m-d H:i:s 令牌,原输出字面量)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 13:37:59 +08:00
co-authored by Claude Opus 4.7
parent 8a47609159
commit b35e1f4787
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (c *member) OrderStatus(ctx context.Context, req *dto.MemberOrderStatusReq)
}
paidAt := ""
if order.PaidAt != nil {
paidAt = order.PaidAt.Format("2006-01-02 15:04:05")
paidAt = order.PaidAt.Format("Y-m-d H:i:s")
}
return &dto.MemberOrderStatusRes{Status: order.Status, TradeNo: order.TradeNo, PaidAt: paidAt}, nil
}
+1 -1
View File
@@ -41,7 +41,7 @@ func (s *memberService) Status(ctx context.Context, userId int64) (*MemberStatus
return st, nil
}
st.IsVip = true
st.ExpireAt = um.ExpireAt.Format("2006-01-02 15:04:05")
st.ExpireAt = um.ExpireAt.Format("Y-m-d H:i:s")
if plan, _ := dao.MemberPlan.GetOne(ctx, um.PlanId); plan != nil {
st.PlanName = plan.Name
st.Benefits = parseBenefits(plan.Features)