test
This commit is contained in:
parent
0e0116250a
commit
a889c05bbd
|
@ -4,5 +4,6 @@ package main
|
||||||
func main() {
|
func main() {
|
||||||
//alipayOrderRedPack()
|
//alipayOrderRedPack()
|
||||||
//wechatRedPackOrder()
|
//wechatRedPackOrder()
|
||||||
|
wechatRedPackQuery()
|
||||||
//alipayNotifyRedPack()
|
//alipayNotifyRedPack()
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,14 +33,16 @@ func wechatRedPackOrder() {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
defer manage.Close()
|
defer manage.Close()
|
||||||
|
//芭乐福利官:wxbfcf9fd93f390c3a
|
||||||
|
//芭乐芭乐加油:wx381e6a04ab7f69b6
|
||||||
req := &proto.OrderRequest{
|
req := &proto.OrderRequest{
|
||||||
Config: getWechatRedPackConf(),
|
Config: getWechatRedPackConf(),
|
||||||
Order: &proto.OrderRequest_Order{
|
Order: &proto.OrderRequest_Order{
|
||||||
OrderNo: "240403164049635934",
|
OrderNo: "240403164049635937",
|
||||||
Account: "olf756DZlPHhTAduH9213h6Z2PCU",
|
Account: "oZ5ge5Vb2UvbEcIc8ZTt_yF7fNx8",
|
||||||
Amount: 0.01,
|
Amount: 0.01,
|
||||||
Quantity: 1,
|
Quantity: 1,
|
||||||
Extra: []byte(`{"app_id":"wx381e6a04ab7f69b6", "out_detail_no":"12345678912"}`),
|
Extra: []byte(`{"app_id":"wxbfcf9fd93f390c3a", "out_detail_no":"12345678917"}`),
|
||||||
},
|
},
|
||||||
Product: &proto.OrderRequest_Product{
|
Product: &proto.OrderRequest_Product{
|
||||||
ProductNo: "",
|
ProductNo: "",
|
||||||
|
@ -60,14 +62,16 @@ func wechatRedPackQuery() {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
defer manage.Close()
|
defer manage.Close()
|
||||||
//{status:ING order_no:"240403164049635931" trade_no:"131000508038701499912952024090256259261117" message:"成功"}
|
//芭乐福利官:wxbfcf9fd93f390c3a
|
||||||
|
//芭乐芭乐加油:wx381e6a04ab7f69b6
|
||||||
|
//{status:ING order_no:"240403164049635937" trade_no:"131000609002201499912952024102122461843179" message:"成功"}
|
||||||
queryRequest := &proto.QueryRequest{
|
queryRequest := &proto.QueryRequest{
|
||||||
Config: getWechatRedPackConf(),
|
Config: getWechatRedPackConf(),
|
||||||
Order: &proto.QueryRequest_Order{
|
Order: &proto.QueryRequest_Order{
|
||||||
OrderNo: "240403164049635934",
|
OrderNo: "202410181543202661520132",
|
||||||
TradeNo: "",
|
TradeNo: "",
|
||||||
Account: "",
|
Account: "",
|
||||||
Extra: []byte(`{"out_detail_no":"12345678912"}`),
|
Extra: []byte(`{"out_detail_no":"20241018154320266152013216702243"}`),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
resQuery, err := instance.Query(context.Background(), wechatRedPackConf.Tag, queryRequest)
|
resQuery, err := instance.Query(context.Background(), wechatRedPackConf.Tag, queryRequest)
|
||||||
|
|
Loading…
Reference in New Issue