🐛 修复新成员无法入库的BUG

This commit is contained in:
李寻欢 2023-11-03 11:48:34 +08:00
parent a6e935e233
commit 86daff5763
2 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,7 @@ wechat:
# 微信HOOK接口地址
host: 10.0.0.73:19088
# 是否在启动的时候自动设置hook服务的回调
autoSetCallback: true
autoSetCallback: false
# 回调IP如果是Docker运行本参数必填如果Docker修改了映射格式为 ip:port
callback: 10.0.0.51
@ -16,12 +16,12 @@ mysql:
db: wechat
task:
enable: false
enable: true
syncFriends:
enable: true
cron: '0 * * * *'
cron: '*/5 * * * *' # 五分钟一次
waterGroup:
enable: true
enable: false
cron: '30 9 * * *'
# 需要发送水群排行榜的群Id
groups:

View File

@ -19,13 +19,13 @@ func (Friend) TableName() string {
// GroupUser
// @description: 群成员
type GroupUser struct {
GroupId string `json:"groupId"` // 群Id
Account string `json:"account"` // 账号
HeadImage string `json:"headImage"` // 头像
Nickname string `json:"nickname"` // 昵称
Wxid string `json:"wxid"` // 微信Id
IsMember bool `json:"isMember" gorm:"type:tinyint(1)"` // 是否群成员
LeaveTime time.Time `json:"leaveTime"` // 离开时间
GroupId string `json:"groupId"` // 群Id
Account string `json:"account"` // 账号
HeadImage string `json:"headImage"` // 头像
Nickname string `json:"nickname"` // 昵称
Wxid string `json:"wxid"` // 微信Id
IsMember bool `json:"isMember" gorm:"type:tinyint(1)"` // 是否群成员
LeaveTime *time.Time `json:"leaveTime"` // 离开时间
}
func (GroupUser) TableName() string {