@@ -6,5 +6,6 @@ type PayChannelMaster struct { | |||||
Identifier string `json:"identifier" xorm:"not null comment('场景标识符') VARCHAR(255)"` | Identifier string `json:"identifier" xorm:"not null comment('场景标识符') VARCHAR(255)"` | ||||
MasterId int `json:"master_id" xorm:"not null default 1 comment('站长id') INT(11)"` | 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)"` | 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)"` | AppId int `json:"app_id" xorm:"not null default 1 comment('应用id(mid)') INT(20)"` | ||||
} | } |
@@ -10,7 +10,6 @@ import ( | |||||
v3 "github.com/iGoogle-ink/gopay/wechat/v3" | v3 "github.com/iGoogle-ink/gopay/wechat/v3" | ||||
"github.com/iGoogle-ink/gotil/xlog" | "github.com/iGoogle-ink/gotil/xlog" | ||||
"github.com/pkg/errors" | "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) | r, err := local_wxpay.TradeMiniProgPayV3(client, params.Subject, params.OrdId, params.Amount, notifyUrl) | ||||
return r, err | return r, err | ||||
} | } | ||||
// 微信金额乘100 | |||||
func wxMoneyMulHundred(m string) string { | |||||
amount, _ := decimal.NewFromString(m) | |||||
newM := amount.Mul(decimal.NewFromInt(100)) | |||||
return newM.String() | |||||
} |