🐛 Fix a bug. #20

Merged
李寻欢 merged 1 commits from hotfix into main 2024-01-26 12:00:53 +08:00
Showing only changes of commit 244bff5714 - Show all commits

View File

@ -66,6 +66,7 @@ func Sync() {
PinyinAll: friend.PinyinAll,
Wxid: friend.Wxid,
IsOk: true,
LastActive: time.Now().Local(),
}).Error
if err != nil {
log.Printf("新增好友失败: %s", err.Error())
@ -157,6 +158,7 @@ func syncGroupUsers(tx *gorm.DB, gid string) {
IsMember: true,
IsAdmin: wxid == baseResp.Data.Admin,
JoinTime: time.Now().Local(),
LastActive: time.Now().Local(),
}).Error
if err != nil {
log.Printf("新增群成员失败: %s", err.Error())