aa
This commit is contained in:
@@ -139,9 +139,7 @@ func (c *ApiController) CallOpenAPI() {
|
|||||||
//判断app_id和sign匹配end
|
//判断app_id和sign匹配end
|
||||||
//call
|
//call
|
||||||
urls, _ = c.Input()
|
urls, _ = c.Input()
|
||||||
fmt.Println("urls ................", urls)
|
|
||||||
dataMap = utils.URLValues2Map(urls)
|
dataMap = utils.URLValues2Map(urls)
|
||||||
fmt.Println("urls2 ................", dataMap)
|
|
||||||
delete(dataMap, keyMethod)
|
delete(dataMap, keyMethod)
|
||||||
delete(dataMap, keyTimestamp)
|
delete(dataMap, keyTimestamp)
|
||||||
delete(dataMap, keySign)
|
delete(dataMap, keySign)
|
||||||
@@ -151,7 +149,7 @@ func (c *ApiController) CallOpenAPI() {
|
|||||||
err = buildMethodParamErr()
|
err = buildMethodParamErr()
|
||||||
goto end
|
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 {
|
if err == nil {
|
||||||
result = routerMap[method].Call(parms)
|
result = routerMap[method].Call(parms)
|
||||||
if result[2].Interface() != nil {
|
if result[2].Interface() != nil {
|
||||||
@@ -251,7 +249,7 @@ func (c *ApiController) UpdatePrinter(dataMap map[string]interface{}) (data, err
|
|||||||
printNo, name, sim, sound string
|
printNo, name, sim, sound string
|
||||||
appID, volume int
|
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 {
|
if _, ok := dataMap[keyPrintNo].(string); !ok {
|
||||||
return buildParamErrCodeAndErr(keyPrintNo)
|
return buildParamErrCodeAndErr(keyPrintNo)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user