Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
IJPay
提交
338a4e2b
I
IJPay
项目概览
int
/
IJPay
9 个月 前同步成功
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
IJPay
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
338a4e2b
编写于
10月 05, 2022
作者:
J
Javen205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
⚡
避免类重名
上级
9808a111
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
88 addition
and
83 deletion
+88
-83
IJPay-Core/src/main/java/com/ijpay/core/constant/IJPayConstants.java
...src/main/java/com/ijpay/core/constant/IJPayConstants.java
+5
-0
IJPay-Demo-JFinal/src/main/java/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
...va/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
+13
-13
IJPay-Demo-SpringBoot/src/main/java/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
...va/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
+14
-14
IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java
IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java
+56
-56
未找到文件。
IJPay-Core/src/main/java/com/ijpay/core/constant/IJPayConstants.java
浏览文件 @
338a4e2b
...
...
@@ -84,4 +84,9 @@ public interface IJPayConstants {
* 服务不可用,过载保护
*/
int
CODE_503
=
503
;
/**
* 在线交流
*/
String
ONLINE_CONTACT
=
"IJPay 让支付触手可及,交流群 723992875、864988890"
;
}
IJPay-Demo-JFinal/src/main/java/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
浏览文件 @
338a4e2b
...
...
@@ -10,7 +10,7 @@ import cn.hutool.json.JSONArray;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
com.ijpay.core.IJPayHttpResponse
;
import
com.ijpay.core.enums.RequestMethod
;
import
com.ijpay.core.enums.RequestMethod
Enum
;
import
com.ijpay.core.kit.AesUtil
;
import
com.ijpay.core.kit.HttpKit
;
import
com.ijpay.core.kit.PayKit
;
...
...
@@ -169,7 +169,7 @@ public class WxPayV3Controller extends Controller {
// 获取平台证书列表
try
{
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
OtherApiEnum
.
GET_CERTIFICATES
.
toString
(),
mchId
,
...
...
@@ -228,7 +228,7 @@ public class WxPayV3Controller extends Controller {
log
.
info
(
"统一下单参数 "
+
JSONUtil
.
toJsonStr
(
unifiedOrderModel
));
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
NATIVE_PAY
.
toString
(),
mchId
,
...
...
@@ -264,7 +264,7 @@ public class WxPayV3Controller extends Controller {
log
.
info
(
"统一下单参数 "
+
JSONUtil
.
toJsonStr
(
unifiedOrderModel
));
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
JS_API_PAY
.
toString
(),
mchId
,
...
...
@@ -300,7 +300,7 @@ public class WxPayV3Controller extends Controller {
params
.
put
(
"url"
,
"https://gitee.com/javen205/IJPay"
);
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
PUT
,
RequestMethod
Enum
.
PUT
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
mchId
,
...
...
@@ -328,7 +328,7 @@ public class WxPayV3Controller extends Controller {
params
.
put
(
"out_order_no"
,
"1234323JKHDFE1243252"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
PayScoreApiEnum
.
PAY_SCORE_SERVICE_ORDER
.
toString
(),
mchId
,
...
...
@@ -350,7 +350,7 @@ public class WxPayV3Controller extends Controller {
HashMap
<
String
,
String
>
hashMap
=
new
HashMap
<>(
12
);
hashMap
.
put
(
"url"
,
"https://qq.com"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
mchId
,
...
...
@@ -362,7 +362,7 @@ public class WxPayV3Controller extends Controller {
System
.
out
.
println
(
result
);
result
=
WxPayApi
.
v3
(
RequestMethod
.
DELETE
,
RequestMethod
Enum
.
DELETE
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
mchId
,
...
...
@@ -423,7 +423,7 @@ public class WxPayV3Controller extends Controller {
String
urlSuffix
=
String
.
format
(
PayGiftActivityApiEnum
.
PAY_GIFT_ACTIVITY_TERMINATE
.
toString
(),
"10028001"
);
System
.
out
.
println
(
urlSuffix
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
urlSuffix
,
mchId
,
...
...
@@ -445,7 +445,7 @@ public class WxPayV3Controller extends Controller {
String
body
=
"处理请求参数"
;
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
Apply4SubApiEnum
.
APPLY_4_SUB
.
toString
(),
mchId
,
...
...
@@ -496,7 +496,7 @@ public class WxPayV3Controller extends Controller {
params
.
put
(
"tar_type"
,
"GZIP"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
TRADE_BILL
.
toString
(),
mchId
,
...
...
@@ -533,7 +533,7 @@ public class WxPayV3Controller extends Controller {
params
.
put
(
"account_type"
,
"BASIC"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
FUND_FLOW_BILL
.
toString
(),
mchId
,
...
...
@@ -564,7 +564,7 @@ public class WxPayV3Controller extends Controller {
}
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
BILL_DOWNLOAD
.
toString
(),
mchId
,
...
...
IJPay-Demo-SpringBoot/src/main/java/com/ijpay/demo/controller/wxpay/WxPayV3Controller.java
浏览文件 @
338a4e2b
...
...
@@ -11,7 +11,7 @@ import cn.hutool.json.JSONArray;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
com.ijpay.core.IJPayHttpResponse
;
import
com.ijpay.core.enums.RequestMethod
;
import
com.ijpay.core.enums.RequestMethod
Enum
;
import
com.ijpay.core.kit.AesUtil
;
import
com.ijpay.core.kit.HttpKit
;
import
com.ijpay.core.kit.PayKit
;
...
...
@@ -198,7 +198,7 @@ public class WxPayV3Controller {
// 获取平台证书列表
try
{
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
OtherApiEnum
.
GET_CERTIFICATES
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -260,7 +260,7 @@ public class WxPayV3Controller {
log
.
info
(
"统一下单参数 {}"
,
JSONUtil
.
toJsonStr
(
unifiedOrderModel
));
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
NATIVE_PAY
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -298,7 +298,7 @@ public class WxPayV3Controller {
log
.
info
(
"统一下单参数 {}"
,
JSONUtil
.
toJsonStr
(
unifiedOrderModel
));
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
JS_API_PAY
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -338,7 +338,7 @@ public class WxPayV3Controller {
params
.
put
(
"url"
,
"https://gitee.com/javen205/IJPay"
);
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
PUT
,
RequestMethod
Enum
.
PUT
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -369,7 +369,7 @@ public class WxPayV3Controller {
params
.
put
(
"out_order_no"
,
"1234323JKHDFE1243252"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
PayScoreApiEnum
.
PAY_SCORE_SERVICE_ORDER
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -394,7 +394,7 @@ public class WxPayV3Controller {
HashMap
<
String
,
String
>
hashMap
=
new
HashMap
<>(
12
);
hashMap
.
put
(
"url"
,
"https://qq.com"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -406,7 +406,7 @@ public class WxPayV3Controller {
System
.
out
.
println
(
result
);
result
=
WxPayApi
.
v3
(
RequestMethod
.
DELETE
,
RequestMethod
Enum
.
DELETE
,
WxDomainEnum
.
CHINA
.
toString
(),
ComplaintsApiEnum
.
COMPLAINTS_NOTIFICATION
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -473,7 +473,7 @@ public class WxPayV3Controller {
String
urlSuffix
=
String
.
format
(
PayGiftActivityApiEnum
.
PAY_GIFT_ACTIVITY_TERMINATE
.
toString
(),
"10028001"
);
System
.
out
.
println
(
urlSuffix
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
urlSuffix
,
wxPayV3Bean
.
getMchId
(),
...
...
@@ -498,7 +498,7 @@ public class WxPayV3Controller {
String
body
=
"处理请求参数"
;
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
Apply4SubApiEnum
.
APPLY_4_SUB
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -557,7 +557,7 @@ public class WxPayV3Controller {
params
.
put
(
"tar_type"
,
"GZIP"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
TRADE_BILL
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -598,7 +598,7 @@ public class WxPayV3Controller {
params
.
put
(
"account_type"
,
"BASIC"
);
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
FUND_FLOW_BILL
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -631,7 +631,7 @@ public class WxPayV3Controller {
}
IJPayHttpResponse
result
=
WxPayApi
.
v3
(
RequestMethod
.
GET
,
RequestMethod
Enum
.
GET
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
BILL_DOWNLOAD
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
@@ -680,7 +680,7 @@ public class WxPayV3Controller {
}
log
.
info
(
"退款参数 {}"
,
JSONUtil
.
toJsonStr
(
refundModel
));
IJPayHttpResponse
response
=
WxPayApi
.
v3
(
RequestMethod
.
POST
,
RequestMethod
Enum
.
POST
,
WxDomainEnum
.
CHINA
.
toString
(),
BasePayApiEnum
.
REFUND
.
toString
(),
wxPayV3Bean
.
getMchId
(),
...
...
IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java
浏览文件 @
338a4e2b
...
...
@@ -4,7 +4,7 @@ import cn.hutool.core.util.StrUtil;
import
cn.hutool.http.ContentType
;
import
com.ijpay.core.IJPayHttpResponse
;
import
com.ijpay.core.enums.PayModel
;
import
com.ijpay.core.enums.RequestMethod
;
import
com.ijpay.core.enums.RequestMethod
Enum
;
import
com.ijpay.core.enums.SignType
;
import
com.ijpay.core.kit.HttpKit
;
import
com.ijpay.core.kit.PayKit
;
...
...
@@ -239,7 +239,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -254,10 +254,10 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
// 构建 Authorization
String
authorization
=
WxPayKit
.
buildAuthorization
(
method
,
urlSuffix
,
mchId
,
serialNo
,
keyPath
,
body
,
nonceStr
,
timestamp
,
authType
);
...
...
@@ -266,15 +266,15 @@ public class WxPayApi {
platSerialNo
=
serialNo
;
}
if
(
method
==
RequestMethod
.
GET
)
{
if
(
method
==
RequestMethod
Enum
.
GET
)
{
return
get
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
null
);
}
else
if
(
method
==
RequestMethod
.
POST
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
POST
)
{
return
post
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
else
if
(
method
==
RequestMethod
.
DELETE
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
DELETE
)
{
return
delete
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
else
if
(
method
==
RequestMethod
.
UPLOAD
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
UPLOAD
)
{
return
upload
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
,
file
);
}
else
if
(
method
==
RequestMethod
.
PUT
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
PUT
)
{
return
put
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
return
null
;
...
...
@@ -283,7 +283,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -298,10 +298,10 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
// 构建 Authorization
String
authorization
=
WxPayKit
.
buildAuthorization
(
method
,
urlSuffix
,
mchId
,
serialNo
,
privateKey
,
body
,
nonceStr
,
timestamp
,
authType
);
...
...
@@ -310,15 +310,15 @@ public class WxPayApi {
platSerialNo
=
serialNo
;
}
if
(
method
==
RequestMethod
.
GET
)
{
if
(
method
==
RequestMethod
Enum
.
GET
)
{
return
get
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
null
);
}
else
if
(
method
==
RequestMethod
.
POST
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
POST
)
{
return
post
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
else
if
(
method
==
RequestMethod
.
DELETE
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
DELETE
)
{
return
delete
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
else
if
(
method
==
RequestMethod
.
UPLOAD
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
UPLOAD
)
{
return
upload
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
,
file
);
}
else
if
(
method
==
RequestMethod
.
PUT
)
{
}
else
if
(
method
==
RequestMethod
Enum
.
PUT
)
{
return
put
(
urlPrefix
.
concat
(
urlSuffix
),
authorization
,
platSerialNo
,
body
);
}
return
null
;
...
...
@@ -327,7 +327,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -338,8 +338,8 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
...
...
@@ -349,7 +349,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -360,8 +360,8 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
String
body
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
String
body
)
throws
Exception
{
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
...
...
@@ -371,7 +371,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -382,9 +382,9 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
...
...
@@ -397,7 +397,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -408,9 +408,9 @@ public class WxPayApi {
* @return {@link IJPayHttpResponse} 请求返回的结果
* @throws Exception 接口执行异常
*/
public
static
IJPayHttpResponse
v3
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
Map
<
String
,
String
>
params
)
throws
Exception
{
public
static
IJPayHttpResponse
v3
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
PrivateKey
privateKey
,
Map
<
String
,
String
>
params
)
throws
Exception
{
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
...
...
@@ -438,7 +438,7 @@ public class WxPayApi {
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
return
v3
(
RequestMethod
.
UPLOAD
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
keyPath
,
body
,
nonceStr
,
timestamp
,
authType
,
file
);
return
v3
(
RequestMethod
Enum
.
UPLOAD
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
keyPath
,
body
,
nonceStr
,
timestamp
,
authType
,
file
);
}
/**
...
...
@@ -460,13 +460,13 @@ public class WxPayApi {
long
timestamp
=
System
.
currentTimeMillis
()
/
1000
;
String
authType
=
"WECHATPAY2-SHA256-RSA2048"
;
String
nonceStr
=
WxPayKit
.
generateStr
();
return
v3
(
RequestMethod
.
UPLOAD
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
privateKey
,
body
,
nonceStr
,
timestamp
,
authType
,
file
);
return
v3
(
RequestMethod
Enum
.
UPLOAD
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
privateKey
,
body
,
nonceStr
,
timestamp
,
authType
,
file
);
}
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -482,10 +482,10 @@ public class WxPayApi {
* @throws Exception 接口执行异常
*/
@Deprecated
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
,
String
nonceStr
,
long
timestamp
,
String
authType
,
File
file
)
throws
Exception
{
IJPayHttpResponse
response
=
v3
(
method
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
keyPath
,
body
,
nonceStr
,
timestamp
,
authType
,
file
);
return
buildResMap
(
response
);
}
...
...
@@ -493,7 +493,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -504,8 +504,8 @@ public class WxPayApi {
* @throws Exception 异常信息
*/
@Deprecated
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
IJPayHttpResponse
response
=
v3
(
method
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
null
,
keyPath
,
body
);
return
buildResMap
(
response
);
}
...
...
@@ -513,7 +513,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -525,8 +525,8 @@ public class WxPayApi {
* @throws Exception 接口执行异常
*/
@Deprecated
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
String
body
)
throws
Exception
{
IJPayHttpResponse
response
=
v3
(
method
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
keyPath
,
body
);
return
buildResMap
(
response
);
}
...
...
@@ -534,7 +534,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -546,9 +546,9 @@ public class WxPayApi {
* @throws Exception 接口执行异常
*/
@Deprecated
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
platSerialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
IJPayHttpResponse
response
=
v3
(
method
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
platSerialNo
,
keyPath
,
params
);
return
buildResMap
(
response
);
}
...
...
@@ -556,7 +556,7 @@ public class WxPayApi {
/**
* V3 接口统一执行入口
*
* @param method {@link RequestMethod} 请求方法
* @param method {@link RequestMethod
Enum
} 请求方法
* @param urlPrefix 可通过 {@link WxDomain}来获取
* @param urlSuffix 可通过 {@link WxApiEnum} 来获取,URL挂载参数需要自行拼接
* @param mchId 商户Id
...
...
@@ -567,9 +567,9 @@ public class WxPayApi {
* @throws Exception 接口执行异常
*/
@Deprecated
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
v3Execution
(
RequestMethod
Enum
method
,
String
urlPrefix
,
String
urlSuffix
,
String
mchId
,
String
serialNo
,
String
keyPath
,
Map
<
String
,
String
>
params
)
throws
Exception
{
IJPayHttpResponse
response
=
v3
(
method
,
urlPrefix
,
urlSuffix
,
mchId
,
serialNo
,
null
,
keyPath
,
params
);
return
buildResMap
(
response
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录