This commit is contained in:
parent
904a818f49
commit
ec99935e2d
|
@ -36,12 +36,12 @@ func wechatOrderCpn() {
|
|||
request := &proto.OrderRequest{
|
||||
Config: getWechatCpnConf(),
|
||||
Order: &proto.OrderRequest_Order{
|
||||
OrderNo: "202411061742462746720021",
|
||||
Account: "oknbq5hEp97sZaoqKWu5dQ3SzujI",
|
||||
Extra: []byte(`{"app_id":"wx83fd6da8093f55b7","stock_creator_mchid":"1679625521"}`),
|
||||
OrderNo: "202411141940575304120010",
|
||||
Account: "oknbq5kTqBqmzvrRqRoLB8V26DCU",
|
||||
Extra: []byte(`{"app_id":"wx83fd6da8093f55b7","stock_creator_mchid":"1605446142"}`),
|
||||
},
|
||||
Product: &proto.OrderRequest_Product{
|
||||
ProductNo: "19519911",
|
||||
ProductNo: "19161060",
|
||||
Extra: []byte(`{}`),
|
||||
},
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ func (p *WeChatCpnService) Order(ctx context.Context, request *proto.OrderReques
|
|||
}
|
||||
resp, result, err := svc.SendCoupon(ctx, req)
|
||||
if err != nil {
|
||||
return nil, p.err(ctx, err)
|
||||
return nil, fmt.Errorf("微信返回错误 %v", p.err(ctx, err))
|
||||
}
|
||||
if result.Response.StatusCode != vo.CodeSuccess.Value() {
|
||||
return nil, fmt.Errorf("微信返回错误 Response StatusCode[%d]Status[%s]", result.Response.StatusCode, result.Response.Status)
|
||||
|
|
|
@ -33,12 +33,12 @@ func TestOrder(t *testing.T) {
|
|||
request := &proto.OrderRequest{
|
||||
Config: config(),
|
||||
Order: &proto.OrderRequest_Order{
|
||||
OrderNo: "240403164049635931",
|
||||
Account: "oO3vO5AxRWgTjmMD38FTvnB5Rq6o",
|
||||
Extra: []byte(`{"app_id":"13100720242","stock_creator_mchid":"1605446142"}`),
|
||||
OrderNo: "202411141940575304120010",
|
||||
Account: "oknbq5kTqBqmzvrRqRoLB8V26DCU",
|
||||
Extra: []byte(`{"app_id":"wx83fd6da8093f55b7","stock_creator_mchid":"1605446142"}`),
|
||||
},
|
||||
Product: &proto.OrderRequest_Product{
|
||||
ProductNo: "3102024032977191_11",
|
||||
ProductNo: "19161060",
|
||||
Extra: []byte(`{}`),
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue