Skip to content

Commit fb4a5f3

Browse files
committed
更新注释
1 parent 01d8c69 commit fb4a5f3

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

example/src/main/java/com/pingxx/example/BatchTransferExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public BatchTransfer create() {
6060
String orderNo = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()) + Main.randomString(7);
6161
Map<String, Object> params = new HashMap<String, Object>();
6262
params.put("app", appId);
63-
params.put("channel", "alipay"); // 目前支持 wx(新渠道)、 wx_pub
64-
params.put("batch_no", orderNo); // 企业转账使用的商户内部订单号。wx(新渠道)、wx_pub 规定为 1 ~ 50 位不能重复的数字字母组合
63+
params.put("channel", "alipay"); // 目前支持 alipay、 unionpay
64+
params.put("batch_no", orderNo); // 企业转账使用的商户内部订单号。
6565
params.put("amount", 2000); // 订单总金额, 人民币单位:分(如订单总金额为 1 元,此处请填 100,企业付款最小发送金额为 1 元)
6666
params.put("type", "b2c"); // 付款类型,当前仅支持 b2c 企业付款
6767
params.put("currency", "cny");

example/src/main/java/com/pingxx/example/RedEnvelopeExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public RedEnvelope create() {
6666
redenvelope.put("subject", "Your Subject");
6767
redenvelope.put("body", "Your Body");
6868
String orderNo = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date());
69-
redenvelope.put("order_no", orderNo);// 红包使用的商户订单号。wx(新渠道)、wx_pub 规定为 1 ~ 28 位不能重复的数字
70-
redenvelope.put("channel", "wx_pub");// 目前支持 wx(新渠道)、 wx_pub
71-
redenvelope.put("recipient", openid);// 接收者 id, 为用户在 wx(新渠道)、wx_pub 下的 open_id
69+
redenvelope.put("order_no", orderNo);// 红包使用的商户订单号。wx_pub 规定为 1 ~ 28 位不能重复的数字
70+
redenvelope.put("channel", "wx_pub");// 目前支持 wx_pub
71+
redenvelope.put("recipient", openid);// 接收者 id, 为用户在 wx_pub 下的 open_id
7272
redenvelope.put("description", "Your Description");
7373
Map<String, String> app = new HashMap<String, String>();
7474
app.put("id", appId);

example/src/main/java/com/pingxx/example/TransferExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public Transfer transfer() {
6666
Transfer transfer = null;
6767
String orderNo = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()) + Main.randomString(7);
6868
Map<String, Object> transferMap = new HashMap<String, Object>();
69-
transferMap.put("channel", "wx_pub");// 目前支持 wx(新渠道)、 wx_pub
70-
transferMap.put("order_no", orderNo);// 企业转账使用的商户内部订单号。wx(新渠道)、wx_pub 规定为 1 ~ 50 位不能重复的数字字母组合
69+
transferMap.put("channel", "wx_pub");// 目前支持 wx_pub
70+
transferMap.put("order_no", orderNo);// 企业转账使用的商户内部订单号。wx_pub 规定为 1 ~ 50 位不能重复的数字字母组合
7171
transferMap.put("amount", "200");// 订单总金额, 人民币单位:分(如订单总金额为 1 元,此处请填 100,企业付款最小发送金额为 1 元)
7272
transferMap.put("type", "b2c");// 付款类型,当前仅支持 b2c 企业付款
7373
transferMap.put("currency", "cny");
74-
transferMap.put("recipient", openid);// 接收者 id, 为用户在 wx(新渠道)、wx_pub 下的 open_id
74+
transferMap.put("recipient", openid);// 接收者 id, 为用户在 wx_pub 下的 open_id
7575
transferMap.put("description", "your description");
7676
Map<String, String> app = new HashMap<String, String>();
7777
app.put("id", appId);

0 commit comments

Comments
 (0)