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