- jd comment api

This commit is contained in:
gazebo
2018-09-29 16:01:17 +08:00
parent 933c218e00
commit 521b3c9f25
3 changed files with 7 additions and 8 deletions

View File

@@ -111,7 +111,7 @@ func (a *API) GetCommentByOrderId(orderId int64) (map[string]interface{}, error)
jdParams := map[string]interface{}{
"orderId": orderId,
}
result, err := a.AccessAPINoPage("commentOutApi/getCommentByOrderId", jdParams, nil, nil, nil)
result, err := a.AccessAPINoPage("commentOutApi/getCommentByOrderId", jdParams, nil, nil, genNoPageResultParser("code", "msg", "result", "200"))
if err == nil {
return result.(map[string]interface{}), nil
}
@@ -120,18 +120,15 @@ func (a *API) GetCommentByOrderId(orderId int64) (map[string]interface{}, error)
// 商家门店评价信息回复接口
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=194&apiid=ea0b466a7fa8489b813e8b197efca2d4
func (a *API) OrgReplyComment(orderID int64, storeID, content, replayPin string) (string, error) {
func (a *API) OrgReplyComment(orderID int64, storeID, content, replayPin string) error {
jdParams := map[string]interface{}{
"orderId": orderID,
"storeId": storeID,
"content": content,
"replyPin": replayPin,
}
result, err := a.AccessAPINoPage("commentOutApi/orgReplyComment", jdParams, nil, nil, genNoPageResultParser("code", "msg", "result", "200"))
if err == nil {
return result.(string), nil
}
return "", err
_, err := a.AccessAPINoPage("commentOutApi/orgReplyComment", jdParams, nil, nil, genNoPageResultParser("code", "msg", "result", "200"))
return err
}
// 根据到家门店编码修改商家自动接单接口