西部请求service适配成功code 0
This commit is contained in:
parent
75ea50fff9
commit
10adbb1bd0
@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"io"
|
||||
"net/http"
|
||||
"strconv"
|
||||
@ -12,6 +11,8 @@ import (
|
||||
"tianyuan-api/pkg/crypto"
|
||||
"tianyuan-api/pkg/errs"
|
||||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
if westDexResp.Code != "00000" {
|
||||
if westDexResp.Code != "00000" && westDexResp.Code != "0" {
|
||||
if westDexResp.Data == "" {
|
||||
logx.Errorf("【西部数据请求】业务失败时响应数据为空: %s %s", westDexResp.Message, westDexResp.Reason)
|
||||
return nil, errs.ErrSystem
|
||||
|
Loading…
Reference in New Issue
Block a user