🎨 优化好友列表同步处理逻辑

This commit is contained in:
李寻欢 2024-06-12 21:47:35 +08:00
parent 44c45d11f2
commit 0f506e5afc

View File

@ -103,6 +103,7 @@ func Sync() {
"custom_account": friend.CustomAccount, "custom_account": friend.CustomAccount,
"pinyin": friend.Pinyin, "pinyin": friend.Pinyin,
"pinyin_all": friend.PinyinAll, "pinyin_all": friend.PinyinAll,
"is_ok": true,
} }
err = tx.Model(&entity.Friend{}).Where("wxid = ?", friend.Wxid).Updates(pm).Error err = tx.Model(&entity.Friend{}).Where("wxid = ?", friend.Wxid).Updates(pm).Error
if err != nil { if err != nil {