example-scan
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
|
||||
* CouponApi `优惠券API`
|
||||
|
||||
* PayApi `微信支付API`
|
||||
* PayApi `微信支付API`
|
||||
|
||||
* CustomsApi `报关接口`
|
||||
@@ -2,6 +2,7 @@ package com.foxinmy.weixin4j.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
@@ -61,7 +62,20 @@ public class Button implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建一个菜单
|
||||
* 创建一个菜单(一级菜单)
|
||||
*
|
||||
* @param name
|
||||
* 菜单显示的名称
|
||||
* @param subButtons
|
||||
* 二级菜单
|
||||
*/
|
||||
public Button(String name, Button... subButtons) {
|
||||
this.name = name;
|
||||
this.subs = Arrays.asList(subButtons);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建一个菜单(二级菜单)
|
||||
*
|
||||
* @param name
|
||||
* 菜单显示的名称
|
||||
|
||||
@@ -42,7 +42,7 @@ public class PayTest {
|
||||
protected final static WeixinPayProxy PAY;
|
||||
|
||||
static {
|
||||
ACCOUNT = new WeixinPayAccount("wx4ab8f8de58159a57", "GATFzDwbQdbbci3QEQxX2rUBvwTrsMiZ", "1290664601");
|
||||
ACCOUNT = new WeixinPayAccount("appid", "paysignkey", "mchid");
|
||||
SIGNATURE = new WeixinPaymentSignature(ACCOUNT.getPaySignKey());
|
||||
PAY = new WeixinPayProxy(new Weixin4jSettings(ACCOUNT));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user