From 47273c435aa152648c81aff37edc63cd18bcf242 Mon Sep 17 00:00:00 2001 From: huangjuajun <102564160@qq.com> Date: Tue, 31 May 2022 13:58:00 +0800 Subject: [PATCH] =?UTF-8?q?add=20Reverse:for=20v1.2.2=20pay=5Fchannel=5Fma?= =?UTF-8?q?ster=E7=BB=93=E6=9E=84=E4=BD=93=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/model/pay_channel_master.go | 1 + pay/pay_by_own.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/db/model/pay_channel_master.go b/db/model/pay_channel_master.go index 8fc86cc..e17badb 100644 --- a/db/model/pay_channel_master.go +++ b/db/model/pay_channel_master.go @@ -6,5 +6,6 @@ type PayChannelMaster struct { Identifier string `json:"identifier" xorm:"not null comment('场景标识符') VARCHAR(255)"` MasterId int `json:"master_id" xorm:"not null default 1 comment('站长id') INT(11)"` MasterNickname string `json:"master_nickname" xorm:"not null comment('站长名称') VARCHAR(255)"` + ThirdPartyId string `json:"third_party_id" xorm:"not null comment('第三方聚合支付的渠道id') VARCHAR(50)"` AppId int `json:"app_id" xorm:"not null default 1 comment('应用id(mid)') INT(20)"` } diff --git a/pay/pay_by_own.go b/pay/pay_by_own.go index 0533b5a..c1719a6 100644 --- a/pay/pay_by_own.go +++ b/pay/pay_by_own.go @@ -10,7 +10,6 @@ import ( v3 "github.com/iGoogle-ink/gopay/wechat/v3" "github.com/iGoogle-ink/gotil/xlog" "github.com/pkg/errors" - "github.com/shopspring/decimal" ) //自有支付 支付宝 @@ -146,10 +145,3 @@ func WxMiniProgPayV3(params *md.WxPayParams) (string, error) { r, err := local_wxpay.TradeMiniProgPayV3(client, params.Subject, params.OrdId, params.Amount, notifyUrl) return r, err } - -// 微信金额乘100 -func wxMoneyMulHundred(m string) string { - amount, _ := decimal.NewFromString(m) - newM := amount.Mul(decimal.NewFromInt(100)) - return newM.String() -}