feat:优化项目信息

This commit is contained in:
henry
2022-02-10 11:36:47 +08:00
parent 1b5026edce
commit 412aaaf1af
6 changed files with 17 additions and 9 deletions

View File

@ -142,8 +142,8 @@ func (c *Activity) Join(id uint64) error {
var count int64
if err = model2.Count(model.NewActivityJoin().ActivityJoin, &count, model2.NewWhere("id", c.UID),
model2.NewWhere("identity", c.SelectIdentity),
model2.NewWhere("activity_id", id), model2.NewWhere("status", model2.ActivityJoinStatusForSuccess)); err != nil {
model2.NewWhere("identity", c.SelectIdentity), model2.NewWhere("activity_id", id),
model2.NewWhere("status", model2.ActivityJoinStatusForSuccess)); err != nil {
return err
}
if count > 0 {