refactor: 修改root

master
howell 3 years ago
parent ed4ca03234
commit d6bd4bbcb9

@ -36,7 +36,9 @@ func (r *registerUser) UserAdd(c *gin.Context, login *user.Login, info *user.Inf
}
level := 0
var parentID uint = 0
var rootID uint = 3212341
// 3212341
// 3238368
var rootID uint = 3238368
if info.InvitationNo != "" {
var shareUser user.Information
// uid := baseCode.Decode(info.InvitationNo)

@ -108,7 +108,7 @@ func (o logic) Vip(args AppUserReq) error {
Identifier: time.Now().Format("060102") + rd,
Level: 2,
ParentID: 0,
RootID: 3212341,
RootID: 3238368,
IsOffline: true,
UpgradeTime2: formatime.NewSecondNow(),
InvitationNo: baseCode.Encode(uint64(lastId)),
@ -145,7 +145,7 @@ func (o logic) Vip(args AppUserReq) error {
if err := tx.Model(&u).Updates(map[string]interface{}{
"level": 2,
"parent_id": 0,
"root_id": 3212341,
"root_id": 3238368,
"upgrade_time1": formatime.NewSecondNow(),
"is_offline": true,
}).Error; err != nil {

Loading…
Cancel
Save