This commit is contained in:
苏尹岚
2020-11-24 16:00:47 +08:00
parent 97f4e1bc19
commit 22c70edcc4

View File

@@ -681,7 +681,7 @@ func UpdateUser(ctx *jxcontext.Context, payload map[string]interface{}) (err err
}
} else {
//邀请过4人直接开通一个月会员并创建群组
if user2.PopCount%4 == 0 && user2.PopFlag == model.NO {
if user2.PopCount%1 == 0 && user2.PopFlag == model.NO {
_, err = InvestMember(ctx, 1, user2.UserID, true)
user2.PopFlag = model.YES
dao.UpdateEntity(db, user2, "PopFlag")