This commit is contained in:
jiangyong 2026-08-26 20:35:15 +08:00
parent 5d481e4ca8
commit 2ff4235310
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ func NewPay(address string, token string) *Pay {
} }
} }
func (p *Pay) Clone(token string) *Pay {
return &Pay{
address: p.address,
token: token,
}
}
func (p *Pay) CreateOrder(order *CreateOrderReq) (map[string]interface{}, error) { func (p *Pay) CreateOrder(order *CreateOrderReq) (map[string]interface{}, error) {
if order.PayType == "" { if order.PayType == "" {
errors.New("payType is nil") errors.New("payType is nil")