Skip to content

Commit

Permalink
update alipay-sdk lib.remove jsp.change some package
Browse files Browse the repository at this point in the history
  • Loading branch information
Javen205 committed Aug 16, 2017
1 parent bdf6348 commit 1ef302b
Show file tree
Hide file tree
Showing 38 changed files with 18 additions and 1,057 deletions.
Binary file removed doc/img/wxpay.gif
Binary file not shown.
Binary file removed doc/img/wxsubpay.gif
Binary file not shown.
Binary file removed libs/alipay-sdk-java20170411150054.jar
Binary file not shown.
Binary file added libs/alipay-sdk-java20170725114550.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<artifactId>alipay-sdk-java</artifactId>
<version>java20170411150054</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/alipay-sdk-java20170411150054.jar</systemPath>
<systemPath>${project.basedir}/libs/alipay-sdk-java20170725114550.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jpay.util;
package com.jpay.ext.kit;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -25,8 +25,6 @@
import javax.net.ssl.X509TrustManager;
import javax.servlet.http.HttpServletRequest;

import com.jpay.ext.kit.StrKit;

/**
* HttpKit
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.jpay.util;
package com.jpay.ext.kit;

import javax.servlet.http.HttpServletRequest;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jpay.util;
package com.jpay.ext.kit;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
Expand All @@ -7,8 +7,8 @@
import java.util.Map.Entry;
import java.util.TreeMap;

import com.jpay.ext.kit.HashKit;
import com.jpay.ext.kit.StrKit;
import com.jpay.util.Charsets;
import com.jpay.util.XmlHelper;
import com.jpay.weixin.api.WxPayApiConfigKit;

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/jpay/util/HttpUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ public String postSSL(String url, String data, String certPath, String certPass)

sslContext.init(kms, null, new SecureRandom());

@SuppressWarnings("deprecation")
okhttp3.OkHttpClient httpsClient = new okhttp3.OkHttpClient()
.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/com/jpay/weixin/api/WxPayApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.HashMap;
import java.util.Map;

import com.jpay.ext.kit.PaymentKit;
import com.jpay.util.HttpUtils;
import com.jpay.util.PaymentKit;
/**
*
* @author Javen
Expand Down Expand Up @@ -57,13 +57,15 @@ public class WxPayApi {
private WxPayApi() {}
/**
* 交易类型枚举
* @author Javen
* 2017年4月15日
* JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付,统一下单接口trade_type的传参可参考这里
* MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口
* 统一下单接口trade_type的传参可参考这里
* JSAPI--公众号支付、小程序支付
* NATIVE--原生扫码支付
* APP--APP支付
* MWEB--WAP支付
* MICROPAY--刷卡支付,刷卡支付有单独的支付接口,不调用统一下单接口
*/
public static enum TradeType {
JSAPI, NATIVE, APP, WAP , MICROPAY
JSAPI,NATIVE,APP,WAP,MICROPAY,MWEB
}


Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/jpay/weixin/api/WxPayApiConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.util.HashMap;
import java.util.Map;

import com.jpay.ext.kit.PaymentKit;
import com.jpay.ext.kit.StrKit;
import com.jpay.util.PaymentKit;
import com.jpay.weixin.api.WxPayApi.TradeType;
/**
* @Email [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/jpay/weixin/api/hb/ReadHbModle.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.Map;

import com.jpay.ext.kit.StrKit;
import com.jpay.util.PaymentKit;
import com.jpay.ext.kit.PaymentKit;
import com.jpay.weixin.api.WxPayApiConfig.PayModel;
/**
* @Email [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/jpay/weixin/api/hb/RedHbApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.Map;

import com.jpay.util.HttpUtils;
import com.jpay.util.PaymentKit;
import com.jpay.ext.kit.PaymentKit;

/**
* 微信红包
Expand Down
1 change: 0 additions & 1 deletion src/main/webapp/MP_verify_lvKCYtYMh7d9PmMu.txt

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/webapp/error/404.jsp

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/webapp/error/500.jsp

This file was deleted.

32 changes: 0 additions & 32 deletions src/main/webapp/index.jsp

This file was deleted.

123 changes: 0 additions & 123 deletions src/main/webapp/onqrpay.jsp

This file was deleted.

Loading

0 comments on commit 1ef302b

Please sign in to comment.