报错
This commit is contained in:
parent
5d1f1f90a0
commit
44465ef6ea
@ -1,13 +1,10 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"go_dreamfactory/modules"
|
||||
|
||||
"go_dreamfactory/lego/base"
|
||||
"go_dreamfactory/lego/core"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -31,12 +28,5 @@ func (this *Api_Comp) Init(service core.IService, module core.IModule, comp core
|
||||
|
||||
func (this *Api_Comp) Start() (err error) {
|
||||
err = this.MComp_GateComp.Start()
|
||||
_data, err := this.module.modelUser.DB.Find("model_log", bson.M{})
|
||||
if err == nil {
|
||||
if _data.RemainingBatchLength() > 0 {
|
||||
return errors.New("")
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user