Merge pull request 'by Robin at 20240425' (#333) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/333
This commit is contained in:
chenhao 2024-04-25 17:21:01 +08:00
commit 2890f1e498
1 changed files with 3 additions and 3 deletions

View File

@ -4705,13 +4705,13 @@ func (m *Mongo) CreateZoneThirdPartnerHis(ctx *gin.Context, zone_third_partner *
// 动态创建频次 // 动态创建频次
func (m *Mongo) GetZoneMomentCreateTimes(ctx *gin.Context, mid int64) (momentCreateTimes *dbstruct.ZoneMomentCreateTimes, err error) { func (m *Mongo) GetZoneMomentCreateTimes(ctx *gin.Context, mid int64) (momentCreateTimes *dbstruct.ZoneMomentCreateTimes, err error) {
col := m.getColZoneMomentCreateTimes() col := m.getColZoneMomentCreateTimes()
momentCreateTimesInstance := dbstruct.ZoneMomentCreateTimes{} momentCreateTimes = &dbstruct.ZoneMomentCreateTimes{}
err = col.Find(ctx, qmgo.M{"_id": mid}).One(&momentCreateTimes) err = col.Find(ctx, qmgo.M{"_id": mid}).One(momentCreateTimes)
if err == qmgo.ErrNoSuchDocuments { if err == qmgo.ErrNoSuchDocuments {
err = nil err = nil
return nil, err return nil, err
} }
return &momentCreateTimesInstance, err return momentCreateTimes, err
} }
func (m *Mongo) GetAndUpdateZoneMomentCreateTimes(ctx *gin.Context, mid int64, cType int64) (momentCreateTimes *dbstruct.ZoneMomentCreateTimes, err error) { func (m *Mongo) GetAndUpdateZoneMomentCreateTimes(ctx *gin.Context, mid int64, cType int64) (momentCreateTimes *dbstruct.ZoneMomentCreateTimes, err error) {