You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/ejiaofei/query_tx_product.go

22 lines
517 B

package ejiaofei
import (
"encoding/xml"
"fmt"
"net/http"
)
type QueryTxProductResult struct {
XMLName xml.Name `xml:"response"`
Error string `xml:"error"` // 错误提示
}
// QueryTxProduct 可充值腾讯产品查询
func (app *App) QueryTxProduct() (body []byte, err error) {
// 签名
app.signStr = fmt.Sprintf("userid%vpwd%v", app.UserID, app.Pwd)
// 请求
body, err = app.request("http://api.ejiaofei.net:11140/queryTXproduct.do", map[string]interface{}{}, http.MethodGet)
return body, err
}