@Test public void testSendGroup(){ RedPackRequest redPackRequest = new RedPackRequest(); redPackRequest.setAppId("wx28a41929a2d6a297"); redPackRequest.setActivityName("欢迎光临创河软件"); redPackRequest.setAmount(600); redPackRequest.setBillNumber("1292063901201512030010000022"); redPackRequest.setNumber(5); redPackRequest.setOpenId("obJjTwAptnfB5pBDpDuKCRA2oVDQ"); redPackRequest.setRemark("测试裂变红包"); redPackRequest.setWishing("欢迎光临"); redPackRequest.setSendName("创河软件"); RedPackResponse redPackResponse = RedPacks.defaultRedPacks().sendGroup(redPackRequest); Assert.assertNotNull(redPackResponse); Assert.assertFalse(redPackResponse.success()); }
public RedPackResponse sendGroup(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.group"); redPackRequest.setAmtType("ALL_RAND"); return send(url, redPackRequest); }
RedPacks { public RedPackResponse sendGroup(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.group"); redPackRequest.setAmtType("ALL_RAND"); return send(url, redPackRequest); } }
RedPacks { public RedPackResponse sendGroup(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.group"); redPackRequest.setAmtType("ALL_RAND"); return send(url, redPackRequest); }  }
RedPacks { public RedPackResponse sendGroup(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.group"); redPackRequest.setAmtType("ALL_RAND"); return send(url, redPackRequest); }  void setPaySetting(PaySetting paySetting); static RedPacks defaultRedPacks(); static RedPacks with(PaySetting paySetting); void setWxSslClient(WxSslClient wxSslClient); RedPackResponse sendSingle(RedPackRequest redPackRequest); RedPackResponse sendGroup(RedPackRequest redPackRequest); RedPackResult query(String billNumber); }
RedPacks { public RedPackResponse sendGroup(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.group"); redPackRequest.setAmtType("ALL_RAND"); return send(url, redPackRequest); }  void setPaySetting(PaySetting paySetting); static RedPacks defaultRedPacks(); static RedPacks with(PaySetting paySetting); void setWxSslClient(WxSslClient wxSslClient); RedPackResponse sendSingle(RedPackRequest redPackRequest); RedPackResponse sendGroup(RedPackRequest redPackRequest); RedPackResult query(String billNumber);  }