|
@@ -243,6 +243,7 @@ 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 = 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 |
|
|