This commit is contained in:
suyl
2021-07-13 18:53:07 +08:00
parent 19229449d4
commit 688c17613c

View File

@@ -13,7 +13,6 @@ import (
"github.com/astaxie/beego/client/orm" "github.com/astaxie/beego/client/orm"
"github.com/astaxie/beego/server/web" "github.com/astaxie/beego/server/web"
"net/http" "net/http"
"net/url"
"reflect" "reflect"
"strings" "strings"
"time" "time"
@@ -81,7 +80,6 @@ func (c *ApiController) CallOpenAPI() {
dataMap = make(map[string]interface{}) dataMap = make(map[string]interface{})
now = time.Now().Unix() now = time.Now().Unix()
parms, result []reflect.Value parms, result []reflect.Value
urls url.Values
app = &model.Apps{} app = &model.Apps{}
db = dao.GetDB() db = dao.GetDB()
) )
@@ -142,9 +140,7 @@ func (c *ApiController) CallOpenAPI() {
} }
//判断app_id和sign匹配end //判断app_id和sign匹配end
//call //call
urls, _ = c.Input() globals.SugarLogger.Debugf("Begin API CallOpenAPI urls......", c.Data)
globals.SugarLogger.Debugf("Begin API CallOpenAPI urls......", urls)
dataMap = utils.URLValues2Map(urls)
delete(dataMap, keyMethod) delete(dataMap, keyMethod)
delete(dataMap, keyTimestamp) delete(dataMap, keyTimestamp)
delete(dataMap, keySign) delete(dataMap, keySign)