tribally report

This commit is contained in:
2025-05-06 20:36:39 +08:00
parent 95a4337ab3
commit 23576211d5
14 changed files with 409 additions and 15 deletions

View File

@@ -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
}