This commit is contained in:
suyl
2021-09-03 18:39:31 +08:00
parent 3fb9f99053
commit f5f8bdb199

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"github.com/astaxie/beego/server/web"
"io/ioutil"
)
type AliApiController struct {
@@ -17,11 +16,7 @@ type CallBack struct {
}
func (c *AliApiController) SecretNumberMsg() {
data, _ := ioutil.ReadAll(c.Ctx.Request.Body)
values, _ := utils.HTTPBody2Values(data, false)
fmt.Println(values)
mapData := utils.URLValues2Map(values)
fmt.Println(mapData)
fmt.Println(utils.Format4Output(c.Ctx.Request, true))
c.Data["json"] = &CallBack{
Code: 0,
Msg: "成功",