tribally report
This commit is contained in:
@@ -2,9 +2,9 @@ package transfercastile
|
||||
|
||||
import (
|
||||
"context"
|
||||
"nova_task/internal/consts"
|
||||
"nova_task/internal/pkg/errs"
|
||||
"nova_task/internal/pkg/utils"
|
||||
"time"
|
||||
|
||||
"nova_task/internal/svc"
|
||||
"nova_task/internal/types"
|
||||
@@ -42,7 +42,7 @@ func (l *TransferCastileToGameListLogic) TransferCastileToGameList(req *types.Tr
|
||||
RoleID: int64(ll.RoleId),
|
||||
Amount: int64(ll.Amount),
|
||||
Status: int64(ll.CallbackStatus),
|
||||
CreatedAt: ll.CreatedAt.Format(consts.FORMATDATETIME),
|
||||
CreatedAt: ll.CreatedAt.Format(time.DateTime),
|
||||
})
|
||||
}
|
||||
return &types.TransferCastileToGameListResp{
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
"nova_task/internal/pkg/utils"
|
||||
"nova_task/internal/svc"
|
||||
"nova_task/internal/types"
|
||||
"time"
|
||||
)
|
||||
|
||||
type TransferCastileToGameLogic struct {
|
||||
@@ -111,7 +112,7 @@ func (l *TransferCastileToGameLogic) TransferCastileToGame(req *types.TransferCa
|
||||
data, _ := jsonx.MarshalToString(itemList)
|
||||
|
||||
//给多角色发邮件
|
||||
_, err = l.svcCtx.GameAction(l.ctx, int64(req.RoleID), consts.GameActionSendNoticeAward, map[string]any{
|
||||
_, err = l.svcCtx.GameAction(l.ctx, req.RoleID, consts.GameActionSendNoticeAward, map[string]any{
|
||||
"role_ids": req.RoleID,
|
||||
"item_list": data,
|
||||
"template_id": 120338,
|
||||
@@ -142,6 +143,6 @@ func (l *TransferCastileToGameLogic) TransferCastileToGame(req *types.TransferCa
|
||||
RoleID: int64(res.RoleId),
|
||||
Amount: int64(res.Amount),
|
||||
Status: int64(res.CallbackStatus),
|
||||
CreatedAt: res.CreatedAt.Format(consts.FORMATDATETIME),
|
||||
CreatedAt: res.CreatedAt.Format(time.DateTime),
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user