From aad595cdc7c14694d11dea657d96f19983450aad Mon Sep 17 00:00:00 2001 From: mofangmin Date: Fri, 23 Aug 2024 17:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/pay/agropay/base.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/pay/agropay/base.go b/modules/pay/agropay/base.go index 97021fc..b3873ee 100644 --- a/modules/pay/agropay/base.go +++ b/modules/pay/agropay/base.go @@ -80,6 +80,10 @@ func (s *Sub) GetResp() (proto.Message, error) { func (s *Sub) PackPayReq() interface{} { r := s.Base.PayReq + r.Amount /= 100 + if len(r.Phone) == 12 { + r.Phone = r.Phone[2:] + } send := &PayReq{ MchNo: mid, AppId: appID, @@ -105,6 +109,10 @@ func (s *Sub) PackPayReq() interface{} { func (s *Sub) PackWithdrawReq() interface{} { r := s.Base.WithdrawReq + r.Amount /= 100 + if len(r.Phone) == 12 { + r.Phone = r.Phone[2:] + } send := &WithdrawReq{ MchNo: mid, AppId: appID,