ad
This commit is contained in:
@@ -681,7 +681,7 @@ func UpdateUser(ctx *jxcontext.Context, payload map[string]interface{}) (err err
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//邀请过4人直接开通一个月会员并创建群组
|
//邀请过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)
|
_, err = InvestMember(ctx, 1, user2.UserID, true)
|
||||||
user2.PopFlag = model.YES
|
user2.PopFlag = model.YES
|
||||||
dao.UpdateEntity(db, user2, "PopFlag")
|
dao.UpdateEntity(db, user2, "PopFlag")
|
||||||
|
|||||||
Reference in New Issue
Block a user