|
@@ -242,7 +242,6 @@ func publicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPlatoon |
|
|
userPublicPlatoonRelation.JoinAt = now |
|
|
userPublicPlatoonRelation.JoinAt = now |
|
|
userPublicPlatoonRelation.CreateAt = now |
|
|
userPublicPlatoonRelation.CreateAt = now |
|
|
userPublicPlatoonRelation.UpdateAt = now |
|
|
userPublicPlatoonRelation.UpdateAt = now |
|
|
userPublicPlatoonRelation.NewestPublicPlatoon = m.NewestPublicPlatoon + 1 |
|
|
|
|
|
_, err = db.UserPublicPlatoonRelationInsert(engine, &userPublicPlatoonRelation) |
|
|
_, err = db.UserPublicPlatoonRelationInsert(engine, &userPublicPlatoonRelation) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return model.UserPublicPlatoonRelation{}, err |
|
|
return model.UserPublicPlatoonRelation{}, err |
|
|