|
@@ -211,12 +211,23 @@ func (l *GetContactListLogic) GetContactList(req *types.ContactListReq) (*types.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 这里要判断联系人与自定义字段的修改时间,使用最大的那个
|
|
|
+ var updateTime, cfUpdateTime, cUpdateTime int64 = 0, 0, v.UpdatedAt.UnixMilli()
|
|
|
+ if len(v.Edges.ContactFields) > 0 {
|
|
|
+ cfUpdateTime = v.Edges.ContactFields[0].UpdatedAt.UnixMilli()
|
|
|
+ }
|
|
|
+ if cfUpdateTime > cUpdateTime {
|
|
|
+ updateTime = cfUpdateTime
|
|
|
+ } else {
|
|
|
+ updateTime = cUpdateTime
|
|
|
+ }
|
|
|
+
|
|
|
resp.Data.Data = append(resp.Data.Data,
|
|
|
types.ContactInfo{
|
|
|
BaseIDInfo: types.BaseIDInfo{
|
|
|
Id: &v.ID,
|
|
|
CreatedAt: pointy.GetPointer(v.CreatedAt.UnixMilli()),
|
|
|
- UpdatedAt: pointy.GetPointer(v.UpdatedAt.UnixMilli()),
|
|
|
+ UpdatedAt: pointy.GetPointer(updateTime),
|
|
|
},
|
|
|
Status: &v.Status,
|
|
|
WxWxid: &v.WxWxid,
|