From 5beceee06b10c3b316373e267371885970788694 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 25 Dec 2024 13:04:08 +0800 Subject: [PATCH] test --- app/hdl/hdl_demo.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/hdl/hdl_demo.go b/app/hdl/hdl_demo.go index eba02d6..0143a13 100644 --- a/app/hdl/hdl_demo.go +++ b/app/hdl/hdl_demo.go @@ -49,9 +49,14 @@ func Demo(c *gin.Context) { return } func Demo1(c *gin.Context) { - state, _, _, err := svc.GetCertifyQuery(c, "17") - fmt.Println(state) - fmt.Println(err) + //es.DeleteIndex(md2.EggUserShortLink) + //es.CreateIndexIfNotExists(md2.EggUserShortLink, md2.EggUserShortLinkMap) + data := make(map[string]string) + if cfg.Prd { + data["aliyun_sms_id"] = os.Getenv("aliyun_sms_id") + data["aliyun_sms_secret"] = os.Getenv("aliyun_sms_secret") + } + e.OutSuc(c, data, nil) } func TestCreateSign(c *gin.Context) {