正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -89,7 +89,13 @@ func (o *OrderClient) SendRequest(businessCode, reqBody string) (string, error) | @@ -89,7 +89,13 @@ func (o *OrderClient) SendRequest(businessCode, reqBody string) (string, error) | ||
89 | return "", err | 89 | return "", err |
90 | } | 90 | } |
91 | 91 | ||
92 | - return respBody, nil | 92 | + orderRes := model.OrderModel{} |
93 | + json.Unmarshal([]byte(respBody), &orderRes) | ||
94 | + _respBody, err := o.DecryptAndVerySign(orderRes.Data, orderRes.Sign) | ||
95 | + if err != nil { | ||
96 | + return "", err | ||
97 | + } | ||
98 | + return string(_respBody), nil | ||
93 | } | 99 | } |
94 | 100 | ||
95 | func (o *OrderClient) checkParams(businessCode, reqBody string) error { | 101 | func (o *OrderClient) checkParams(businessCode, reqBody string) error { |
请
注册
或
登录
后发表评论