This commit is contained in:
suyl
2021-07-13 15:49:30 +08:00
parent 2ef51857b5
commit 1690888782

View File

@@ -139,9 +139,7 @@ func (c *ApiController) CallOpenAPI() {
//判断app_id和sign匹配end
//call
urls, _ = c.Input()
fmt.Println("urls ................", urls)
dataMap = utils.URLValues2Map(urls)
fmt.Println("urls2 ................", dataMap)
delete(dataMap, keyMethod)
delete(dataMap, keyTimestamp)
delete(dataMap, keySign)
@@ -151,7 +149,7 @@ func (c *ApiController) CallOpenAPI() {
err = buildMethodParamErr()
goto end
}
globals.SugarLogger.Debugf("Begin API CallOpenAPI Method: %s, accessUUID:%s, sign:%s, params : %v \n", method, accessID, sign, utils.Format4Output(parms, true))
globals.SugarLogger.Debugf("Begin API CallOpenAPI Method: %s, accessUUID:%s, sign:%s\n", method, accessID, sign)
if err == nil {
result = routerMap[method].Call(parms)
if result[2].Interface() != nil {
@@ -251,7 +249,7 @@ func (c *ApiController) UpdatePrinter(dataMap map[string]interface{}) (data, err
printNo, name, sim, sound string
appID, volume int
)
globals.SugarLogger.Debugf("Begin API UpdatePrinter data: [%v] , ip : %s", utils.Format4Output(dataMap, false), c.Ctx.Input.IP())
globals.SugarLogger.Debugf("Begin API UpdatePrinter data: [%v]", utils.Format4Output(dataMap, false))
if _, ok := dataMap[keyPrintNo].(string); !ok {
return buildParamErrCodeAndErr(keyPrintNo)
} else {