|
@@ -5,7 +5,6 @@ import (
|
|
|
"fmt"
|
|
|
"github.com/go-nunu/nunu-layout-advanced/internal/repository"
|
|
|
"strconv"
|
|
|
- "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -29,8 +28,7 @@ type duedateService struct {
|
|
|
gameShieldRepository repository.GameShieldRepository
|
|
|
}
|
|
|
|
|
|
-func (service *duedateService) NextDueDate(ctx context.Context, uid int, hostId string) (string, error) {
|
|
|
- productID := strings.ReplaceAll(hostId, "(游戏盾入门版)", "")
|
|
|
+func (service *duedateService) NextDueDate(ctx context.Context, uid int, productID string) (string, error) {
|
|
|
timeStr, err := service.gameShieldRepository.GetGameShieldNextduedate(ctx, int64(uid), productID)
|
|
|
if timeStr == "0" || timeStr == "" {
|
|
|
return "", err
|