Merge pull request 'feat-IRONFANS-70' (#334) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/334
This commit is contained in:
commit
ed836112fd
|
@ -4703,13 +4703,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) {
|
||||
col := m.getColZoneMomentCreateTimes()
|
||||
momentCreateTimesInstance := dbstruct.ZoneMomentCreateTimes{}
|
||||
err = col.Find(ctx, qmgo.M{"_id": mid}).One(&momentCreateTimes)
|
||||
momentCreateTimes = &dbstruct.ZoneMomentCreateTimes{}
|
||||
err = col.Find(ctx, qmgo.M{"_id": mid}).One(momentCreateTimes)
|
||||
if err == qmgo.ErrNoSuchDocuments {
|
||||
err = nil
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue