diff --git a/app/hdl/friend_circle/hdl_friend_circle._test.go b/app/hdl/friend_circle/hdl_friend_circle._test.go index aea1cfc..ae861e3 100644 --- a/app/hdl/friend_circle/hdl_friend_circle._test.go +++ b/app/hdl/friend_circle/hdl_friend_circle._test.go @@ -103,14 +103,14 @@ func TestDeleteEggScoreIndex(t *testing.T) { // 创建临时蛋蛋分记录 func TestCreateTempEggScoreIndex(t *testing.T) { - es.Init("http://120.55.48.175:9200", "elastic", "fnuo123") - index := fmt.Sprintf("%s_%d_1", md.EggEnergyUserEggScoreEsAlias, 202451) + es.Init("http://123.57.140.192:9200/", "elastic", "fnuo123") + index := fmt.Sprintf("%s_%d", md.EggEnergyUserEggScoreEsAlias, 202451) err := es.CreateIndexIfNotExists(index, md.EggEnergyUserEggScoreEsMapping) if err != nil { fmt.Println(err) } - for i := 1; i < 650; i++ { + for i := 1; i < 41; i++ { egg_energy.ExistOrDefaultUserEggScore(int64(i)) } @@ -125,11 +125,6 @@ func TestCreateEggScoreIndex(t *testing.T) { if err != nil { fmt.Println(err) } - index2 := fmt.Sprintf("%s_%d", md.EggEnergyUserEggScoreEsAlias, 202452) - err = es.CreateIndexIfNotExists(index2, md.EggEnergyUserEggScoreEsMapping) - if err != nil { - fmt.Println(err) - } fmt.Println("success") } diff --git a/go.mod b/go.mod index a26238a..1aab430 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( require ( code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241219070554-7d4bf7b5cbb2 - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241218155438-73db9904c556 + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241220073933-42987f91e880 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible