From 29434729d9cd7a10e59ade96818ef91f4bdf64dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 28 Feb 2020 09:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=81=94=E6=94=AF=E4=BB=98=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jx/localjx/tonglianpay.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/business/partner/purchase/jx/localjx/tonglianpay.go b/business/partner/purchase/jx/localjx/tonglianpay.go index f42e762a1..6cc2a8087 100644 --- a/business/partner/purchase/jx/localjx/tonglianpay.go +++ b/business/partner/purchase/jx/localjx/tonglianpay.go @@ -52,12 +52,12 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp CodeURL: utils.LimitUTF8StringLen(result.PayInfo, 3200), TotalFee: int(order.ActualPayPrice), } - plainText, err2 := RSADecrypt([]byte(result2.PaySign)) - result2.PaySign = string(plainText) - globals.SugarLogger.Debugf("pay4OrderByTL2, [%v]", string(plainText)) - str, err2 := json.Marshal(result2) - result.PayInfo = string(str) - err = err2 + // plainText, err2 := RSADecrypt([]byte(result2.PaySign)) + // result2.PaySign = string(plainText) + // globals.SugarLogger.Debugf("pay4OrderByTL2, [%v]", string(plainText)) + // str, err2 := json.Marshal(result2) + // result.PayInfo = string(str) + // err = err2 } return orderPay, err } @@ -74,7 +74,6 @@ func RSADecrypt(pub []byte) (plainText []byte, err error) { // buf := make([]byte, info.Size()) // file.Read(buf) buf, err := ioutil.ReadFile("conf/rsa_key.pem") - globals.SugarLogger.Debugf("pay4OrderByTL3, [%v]", string(buf)) //pem解码 block, _ := pem.Decode(buf) //X509解码