竞技场
This commit is contained in:
parent
7f1197597f
commit
16f81a664f
@ -38,7 +38,7 @@ func (this *modelArena) Init(service core.IService, module core.IModule, comp co
|
||||
bsonx.Doc{
|
||||
{Key: "uid", Value: bsonx.Int32(1)},
|
||||
},
|
||||
bson.M{"loc": "2d"},
|
||||
bson.M{"loc": "2dsphere"},
|
||||
},
|
||||
})
|
||||
return
|
||||
|
@ -48,7 +48,7 @@ func Test_2D(t *testing.T) {
|
||||
port := []float64{2, float64(rand.Int31n(100)) / 1000.0}
|
||||
fmt.Printf("port:%v \n", port)
|
||||
if cursor, err := sys.Find(comm.TableArena, bson.M{
|
||||
// "dan": 2,
|
||||
"dan": 2,
|
||||
// "loc": bson.M{
|
||||
// "$geoWithin": bson.M{
|
||||
// "$center": bson.A{port, 100},
|
||||
|
Loading…
Reference in New Issue
Block a user