temp
This commit is contained in:
@@ -44,11 +44,7 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
|
||||
// 构造请求URL
|
||||
reqUrl := fmt.Sprintf("%s/%s/%s?timestamp=%s", w.config.Url, w.config.SecretId, code, timestamp)
|
||||
|
||||
// 将请求参数编码为JSON格式
|
||||
data := map[string]interface{}{
|
||||
"data": reqData,
|
||||
}
|
||||
jsonData, err := json.Marshal(data)
|
||||
jsonData, err := json.Marshal(reqData)
|
||||
if err != nil {
|
||||
logx.Errorf("【西部数据请求】JSON编码错误: %v", err)
|
||||
return
|
||||
@@ -94,7 +90,7 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
|
||||
logx.Errorf("【西部数据请求】JSON反序列化错误: %v", UnmarshalErr)
|
||||
return nil, UnmarshalErr
|
||||
}
|
||||
|
||||
logx.Infof("西部流水号: %s", westDexResp.ID)
|
||||
// 到这层是西部系统
|
||||
if westDexResp.Code != "00000" {
|
||||
logx.Errorf("【西部数据请求】响应数据业务异常: %s %s", westDexResp.Message, westDexResp.Reason)
|
||||
|
||||
Reference in New Issue
Block a user