Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
icowan committed Feb 14, 2022
1 parent 23084dd commit 1a56352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pkg/mp/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func decodeRecentRepayRequest(_ context.Context, r *http.Request) (interface{},
var req recentRepayRequest
recent, _ := strconv.Atoi(r.URL.Query().Get("recent"))
if recent <= 0 {
recent = 10
recent = 31
}
req.recent = recent

Expand Down
2 changes: 1 addition & 1 deletion src/pkg/mp/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type service struct {
func (s *service) CardBill(ctx context.Context, userId, cardId int64) (res []billResult, err error) {
logger := log.With(s.logger, s.traceId, ctx.Value(s.traceId), "method", "CardBill")

list, err := s.repository.CardBill().LastBill(ctx, []int64{cardId}, 24, nil)
list, err := s.repository.CardBill().LastBill(ctx, []int64{cardId}, 12, nil)
if err != nil {
_ = level.Error(logger).Log("repository.CardBill", "LastBill", "err", err.Error())
return
Expand Down

0 comments on commit 1a56352

Please sign in to comment.