This commit is contained in:
邹宗楠
2023-07-28 20:09:57 +08:00
parent 86d1bc5bee
commit 78887ca68a
5 changed files with 34 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ package jdapi
import (
"errors"
"git.rosy.net.cn/jx-callback/globals"
"strings"
"git.rosy.net.cn/baseapi"
@@ -452,6 +453,14 @@ func (a *API) OrderAcceptOperate(orderId string, isAgreed bool, userName string)
"operator": utils.GetAPIOperator(userName),
}
_, err := a.AccessAPINoPage("ocs/orderAcceptOperate", jdParams, nil, nil, orderOperationResultParser)
if err != nil {
printParam := map[string]interface{}{
"orderId": utils.Str2Int64(orderId),
}
result, err := a.AccessAPINoPage("bm/open/api/order/printOrder", printParam, nil, nil, nil)
globals.SugarLogger.Debugf("============result := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("============result := %s", utils.Format4Output(err, false))
}
return err
}