This commit is contained in:
邹宗楠
2025-07-23 13:35:36 +08:00
parent b92fc6bc88
commit 6949aa9c19
3 changed files with 30 additions and 26 deletions

View File

@@ -2,6 +2,7 @@ package lakala
import (
"encoding/json"
"errors"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"net/http"
@@ -203,7 +204,11 @@ func (a *API) QuerySeparateRecipient(orderNo, receiverNo string) (*QuerySeparate
return nil, err
}
bodyResult, err := json.Marshal(result)
if result["retCode"] != Success {
return nil, errors.New(result["retMsg"].(string))
}
bodyResult, err := json.Marshal(result["respData"])
if err != nil {
return nil, err
}