1
This commit is contained in:
@@ -452,14 +452,15 @@ func (a *API) OrderAcceptOperate(orderId string, isAgreed bool, userName string)
|
||||
"isAgreed": utils.Bool2String(isAgreed),
|
||||
"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))
|
||||
// 打印
|
||||
printResult, err2 := a.AccessAPINoPage("bm/open/api/order/printOrder", map[string]interface{}{
|
||||
"orderId": utils.Str2Int64(orderId),
|
||||
}, nil, nil, nil)
|
||||
if err2 != nil {
|
||||
globals.SugarLogger.Debugf("打印订单错误: %s,%v", utils.Format4Output(printResult, false), err2)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user