|
|
|
|
@ -90,6 +90,7 @@ func ShareBind(share string, isOld bool, uid, cid int) { |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
PushRed(upInfo.UID, pb.RedPointModule_RedPointShare, 1) |
|
|
|
|
} else { |
|
|
|
|
// 一级
|
|
|
|
|
upInfo = &common.ShareInfo{Share: share} |
|
|
|
|
@ -147,6 +148,7 @@ func ShareBind(share string, isOld bool, uid, cid int) { |
|
|
|
|
log.Error("update spin err, %s", err.Error()) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
PushRed(upInfo.UID, pb.RedPointModule_RedPointPdd, 1) |
|
|
|
|
// 裂变任务邀请人数
|
|
|
|
|
err = db.Mysql().C().Model(&common.ShareTaskNewData{}).Where("uid = ? and `type` = 2 and `status` = 0", upInfo.UID). |
|
|
|
|
Updates(map[string]interface{}{ |
|
|
|
|
@ -848,7 +850,7 @@ func updateShareByUp(uid, upUid, uplevel, updateType int, updateValue int64, exp |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// updateType(1:下注,2:充值,3:任务,4:邀请人,5:提现, 6:回滚)
|
|
|
|
|
// UpdateShare updateType(1:下注,2:充值,3:任务,4:邀请人,5:提现, 6:回滚)
|
|
|
|
|
func UpdateShare(uid, updateType int, updateValue int64, expand ...string) (err error) { |
|
|
|
|
if updateType == 1 { // 直接更新下注奖池
|
|
|
|
|
_, _, expired, rankKey := getShareRankJackpotKey() |
|
|
|
|
|