|
|
@@ -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) { |
|
|
|