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() -}