对接新供应链-唯品尚

This commit is contained in:
zhongqiang
2025-06-17 12:03:01 +08:00
parent 1b97811c6a
commit 0b6b76c708
2 changed files with 66 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import (
"crypto/md5"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
@@ -297,7 +298,7 @@ func (w *WeiPinShangClient) WPSPost(url string, paramMap map[string]any) (res []
fmt.Printf("res: %s\n", string(res))
if !json.Valid(res) {
return nil, fmt.Errorf("响应不是有效的JSON格式: %s", string(res))
return nil, errors.New("响应不是有效的JSON格式")
}
return