|
@@ -4,6 +4,7 @@ import (
|
|
|
"context"
|
|
|
"encoding/json"
|
|
|
"github.com/zeromicro/go-zero/core/errorx"
|
|
|
+ "time"
|
|
|
"wechat-api/ent"
|
|
|
"wechat-api/ent/batchmsg"
|
|
|
|
|
@@ -53,7 +54,7 @@ func (l *GetBatchMsgByIdLogic) GetBatchMsgById(req *types.IDReq) (*types.BatchMs
|
|
|
}
|
|
|
labels = tagMap["contact_tag"]
|
|
|
groupLables = tagMap["group_tag"]
|
|
|
-
|
|
|
+ loc, _ := time.LoadLocation("Asia/Shanghai")
|
|
|
return &types.BatchMsgInfoResp{
|
|
|
BaseDataInfo: types.BaseDataInfo{
|
|
|
Code: 0,
|
|
@@ -79,7 +80,7 @@ func (l *GetBatchMsgByIdLogic) GetBatchMsgById(req *types.IDReq) (*types.BatchMs
|
|
|
StartTime: pointy.GetUnixMilliPointer(data.StartTime.UnixMilli()),
|
|
|
StopTime: pointy.GetUnixMilliPointer(data.StopTime.UnixMilli()),
|
|
|
SendTime: pointy.GetUnixMilliPointer(data.SendTime.UnixMilli()),
|
|
|
- StartTimeStr: pointy.GetPointer(data.StartTime.Format("2006-01-02 15:04:05")),
|
|
|
+ StartTimeStr: pointy.GetPointer(data.StartTime.In(loc).Format("2006-01-02 15:04:05")),
|
|
|
Labels: labels,
|
|
|
GroupLabels: groupLables,
|
|
|
},
|