This commit is contained in:
suyl
2021-06-28 18:39:45 +08:00
parent 1df97c4106
commit 0ed3d3afa7

View File

@@ -117,7 +117,7 @@ func (c *ApiController) CallOpenAPI() {
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[1].IsNil() {
if result[1].String() != "" {
err = fmt.Errorf(result[1].String())
goto end
}
@@ -157,7 +157,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data string, er
orderNo = utils.Interface2Int64WithDefault(dataMap["order_no"], 0)
db = dao.GetDB()
)
globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", dataMap)
globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, true))
if orderNo == 0 {
return data, fmt.Sprintf("订单序号不能为0")
}