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