提交 de23007ccea5aec3062f519afd9f3ead12497573

作者 chenang
1 个父辈 15de352a

update

正在显示 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 {
注册登录 后发表评论