新增JSTICKET支持
This commit is contained in:
@@ -8,7 +8,6 @@ import java.util.List;
|
||||
import com.foxinmy.weixin4j.exception.WeixinException;
|
||||
import com.foxinmy.weixin4j.http.JsonResult;
|
||||
import com.foxinmy.weixin4j.model.Button;
|
||||
import com.foxinmy.weixin4j.model.WeixinMpAccount;
|
||||
import com.foxinmy.weixin4j.mp.api.CustomApi;
|
||||
import com.foxinmy.weixin4j.mp.api.GroupApi;
|
||||
import com.foxinmy.weixin4j.mp.api.HelperApi;
|
||||
@@ -71,24 +70,13 @@ public class WeixinProxy {
|
||||
}
|
||||
|
||||
/**
|
||||
* appid,appsecret<br>
|
||||
* <font color="red">将无法调用支付相关接口</font>
|
||||
*
|
||||
* @param appid
|
||||
* @param appsecret
|
||||
*/
|
||||
public WeixinProxy(String appid, String appsecret) {
|
||||
this(new WeixinMpAccount(appid, appsecret));
|
||||
}
|
||||
|
||||
/**
|
||||
* WeixinAccount对象
|
||||
*
|
||||
* @param weixinAccount
|
||||
* 微信账户
|
||||
*/
|
||||
public WeixinProxy(WeixinMpAccount weixinAccount) {
|
||||
this(new FileTokenHolder(new WeixinTokenCreator(weixinAccount)));
|
||||
this(new FileTokenHolder(new WeixinTokenCreator(appid, appsecret,
|
||||
AccountType.MP)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,10 +35,11 @@ public abstract class PayApi extends MpApi {
|
||||
|
||||
protected final TokenHolder tokenHolder;
|
||||
protected final WeixinMpAccount weixinAccount;
|
||||
|
||||
public PayApi(WeixinMpAccount weixinAccount) {
|
||||
this.weixinAccount = weixinAccount;
|
||||
this.tokenHolder = new FileTokenHolder(new WeixinTokenCreator(
|
||||
weixinAccount));
|
||||
weixinAccount.getAccountType()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-1
@@ -124,9 +124,11 @@ micropay_uri={mch_base_url}/pay/micropay
|
||||
# \u63a5\u53e3\u4e0a\u62a5
|
||||
pay_report_uri={mch_base_url}/payitil/report
|
||||
|
||||
|
||||
# \u7edf\u4e00\u8ba2\u5355\u751f\u6210
|
||||
unifiedorder_uri={mch_base_url}/pay/unifiedorder
|
||||
# native\u652f\u4ed8\u94fe\u63a5
|
||||
nativepay_v2_uri=weixin://wxpay/bizpayurl?sign=%s&appid=%s&productid=%s×tamp=%s&noncestr=%s
|
||||
nativepay_v3_uri=weixin://wxpay/bizpayurl?sign=%s&appid=%s&mch_id=%s&product_id=%s&time_stamp=%s&nonce_str=%s
|
||||
|
||||
# \u83b7\u53d6\u7528\u6237\u589e\u51cf\u6570\u636e
|
||||
datacube_getusersummary_uri={api_base_url}/datacube/getusersummary?access_token=%s
|
||||
|
||||
Reference in New Issue
Block a user