From ed98603ccbceacda4c6aae3bb5efbe0b6245c21e Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 29 May 2019 15:16:13 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BA=AC=E4=B8=9C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=91=98=E7=BB=9F=E4=B8=80=E5=8A=A0jxadmin=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdapi/order.go | 14 +++++++------- platformapi/jdapi/store.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/platformapi/jdapi/order.go b/platformapi/jdapi/order.go index a117f13a..6aeea484 100644 --- a/platformapi/jdapi/order.go +++ b/platformapi/jdapi/order.go @@ -327,7 +327,7 @@ func (a *API) OrderCancelOperate(orderId string, isAgreed bool, operator, remark jdParams := map[string]interface{}{ "orderId": orderId, "isAgreed": isAgreed, - "operator": operator, + "operator": utils.GetAPIOperator(operator), "remark": remark, } _, err = a.AccessAPINoPage("ocs/orderCancelOperate", jdParams, nil, nil, nullResultParser) @@ -339,7 +339,7 @@ func (a *API) OrderCancelOperate(orderId string, isAgreed bool, operator, remark func (a *API) AdjustOrder(orderId, operPin, remark string, oaosAdjustDTOList []*OAOSAdjustDTO) (err error) { jdParams := map[string]interface{}{ "orderId": orderId, - "operPin": operPin, + "operPin": utils.GetAPIOperator(operPin), "remark": remark, "oaosAdjustDTOList": oaosAdjustDTOList, } @@ -353,7 +353,7 @@ func (a *API) ReceiveFailedAudit(orderId string, isAgreed bool, operator, remark jdParams := map[string]interface{}{ "orderId": orderId, "isAgreed": isAgreed, - "operator": operator, + "operator": utils.GetAPIOperator(operator), "remark": remark, } _, err = a.AccessAPINoPage("order/receiveFailedAudit", jdParams, nil, nil, nullResultParser) @@ -365,7 +365,7 @@ func (a *API) ReceiveFailedAudit(orderId string, isAgreed bool, operator, remark func (a *API) UrgeDispatching(orderId, updatePin string) (err error) { jdParams := map[string]interface{}{ "orderId": orderId, - "updatePin": updatePin, + "updatePin": utils.GetAPIOperator(updatePin), } _, err = a.AccessAPINoPage("bm/urgeDispatching", jdParams, nil, nil, nullResultParser) return err @@ -388,7 +388,7 @@ func (a *API) AfsOpenApprove(afsOrderID string, afsApproveType int, rejectReason jdParams := map[string]interface{}{ "serviceOrder": afsOrderID, "approveType": afsApproveType, - "optPin": optPin, + "optPin": utils.GetAPIOperator(optPin), } if rejectReason != "" { jdParams["rejectReason"] = rejectReason @@ -402,7 +402,7 @@ func (a *API) AfsOpenApprove(afsOrderID string, afsApproveType int, rejectReason func (a *API) ConfirmReceipt(afsOrderID, pin string) (err error) { jdParams := map[string]interface{}{ "serviceOrder": afsOrderID, - "pin": pin, + "pin": utils.GetAPIOperator(pin), } _, err = a.AccessAPINoPage("afs/confirmReceipt", jdParams, nil, nil, nullResultParser) return err @@ -413,7 +413,7 @@ func (a *API) ConfirmReceipt(afsOrderID, pin string) (err error) { func (a *API) AfsSubmit(OrderID, pin, questionTypeCode, questionDesc, questionPic, customerName, customerMobilePhone, address string, skuList []*VenderAfsSkuDTO) (afsOrderID string, err error) { jdParams := map[string]interface{}{ "orderId": OrderID, - "pin": pin, + "pin": utils.GetAPIOperator(pin), "questionTypeCode": questionTypeCode, } if questionDesc != "" { diff --git a/platformapi/jdapi/store.go b/platformapi/jdapi/store.go index 9a0f7048..71cb7629 100644 --- a/platformapi/jdapi/store.go +++ b/platformapi/jdapi/store.go @@ -142,7 +142,7 @@ func (a *API) OrgReplyComment(orderID int64, storeID, content, replayPin string) "orderId": orderID, "storeId": storeID, "content": content, - "replyPin": replayPin, + "replyPin": utils.GetAPIOperator(replayPin), } _, err := a.AccessAPINoPage("commentOutApi/orgReplyComment", jdParams, nil, nil, genNoPageResultParser("code", "msg", "result", "200")) return err