aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user