Explorar el Código

add Reverse:for v1.2.2 pay_channel_master结构体更新

tags/v1.2.2
huangjuajun hace 2 años
padre
commit
47273c435a
Se han modificado 2 ficheros con 1 adiciones y 8 borrados
  1. +1
    -0
      db/model/pay_channel_master.go
  2. +0
    -8
      pay/pay_by_own.go

+ 1
- 0
db/model/pay_channel_master.go Ver fichero

@@ -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)"`
}

+ 0
- 8
pay/pay_by_own.go Ver fichero

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

Cargando…
Cancelar
Guardar