Merge remote-tracking branch 'origin/master' into internal
This commit is contained in:
@@ -3,6 +3,7 @@ package user
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
commonLogic "github.com/perfect-panel/server/internal/logic/common"
|
||||
@@ -58,6 +59,9 @@ func (l *QueryUserSubscribeLogic) QueryUserSubscribe() (resp *types.QueryUserSub
|
||||
var sub types.UserSubscribe
|
||||
tool.DeepCopy(&sub, item)
|
||||
|
||||
// 填充 IdStr 字段,避免前端精度丢失
|
||||
sub.IdStr = strconv.FormatInt(item.Id, 10)
|
||||
|
||||
// 解析Discount字段 避免在续订时只能续订一个月
|
||||
if item.Subscribe != nil && item.Subscribe.Discount != "" {
|
||||
var discounts []types.SubscribeDiscount
|
||||
|
||||
Reference in New Issue
Block a user