西部请求service适配成功code 0
This commit is contained in:
parent
75ea50fff9
commit
10adbb1bd0
@ -4,7 +4,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -12,6 +11,8 @@ import (
|
|||||||
"tianyuan-api/pkg/crypto"
|
"tianyuan-api/pkg/crypto"
|
||||||
"tianyuan-api/pkg/errs"
|
"tianyuan-api/pkg/errs"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Wrapper[T any] struct {
|
type Wrapper[T any] struct {
|
||||||
@ -103,7 +104,7 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}, se
|
|||||||
|
|
||||||
logx.Infof("西部流水号: %s", westDexResp.ID)
|
logx.Infof("西部流水号: %s", westDexResp.ID)
|
||||||
|
|
||||||
if westDexResp.Code != "00000" {
|
if westDexResp.Code != "00000" && westDexResp.Code != "0" {
|
||||||
if westDexResp.Data == "" {
|
if westDexResp.Data == "" {
|
||||||
logx.Errorf("【西部数据请求】业务失败时响应数据为空: %s %s", westDexResp.Message, westDexResp.Reason)
|
logx.Errorf("【西部数据请求】业务失败时响应数据为空: %s %s", westDexResp.Message, westDexResp.Reason)
|
||||||
return nil, errs.ErrSystem
|
return nil, errs.ErrSystem
|
||||||
|
Loading…
Reference in New Issue
Block a user