Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-youka-wallet
youka-api
Commits
932f54cb
Commit
932f54cb
authored
Jun 07, 2018
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除测试代码
parent
fc34a69a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
281 deletions
+7
-281
vcs.xml
.idea/vcs.xml
+7
-0
ValidationFilter.java
src/main/java/com/thinkgem/jeesite/common/filter/ValidationFilter.java
+0
-1
JuHeZhongPayJFenService.java
src/main/java/com/thinkgem/jeesite/modules/pay/juhezhong/service/JuHeZhongPayJFenService.java
+0
-173
JuHeZhongPayService.java
src/main/java/com/thinkgem/jeesite/modules/pay/juhezhong/service/JuHeZhongPayService.java
+0
-107
No files found.
.idea/vcs.xml
0 → 100644
View file @
932f54cb
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
""
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
src/main/java/com/thinkgem/jeesite/common/filter/ValidationFilter.java
View file @
932f54cb
...
@@ -36,7 +36,6 @@ public class ValidationFilter implements Filter {
...
@@ -36,7 +36,6 @@ public class ValidationFilter implements Filter {
list
.
add
(
"notifyQuickPay"
);
list
.
add
(
"notifyQuickPay"
);
list
.
add
(
"notifyPay"
);
list
.
add
(
"notifyPay"
);
if
(!
list
.
contains
(
urls
)){
if
(!
list
.
contains
(
urls
)){
System
.
out
.
println
(
"进入了"
);
String
signCode
=
ComCode
.
signCode
;
String
signCode
=
ComCode
.
signCode
;
String
subMerchantCode
=
httpRequest
.
getParameter
(
"subMerchantCode"
);
String
subMerchantCode
=
httpRequest
.
getParameter
(
"subMerchantCode"
);
String
timestamp
=
httpRequest
.
getParameter
(
"timestamp"
);
String
timestamp
=
httpRequest
.
getParameter
(
"timestamp"
);
...
...
src/main/java/com/thinkgem/jeesite/modules/pay/juhezhong/service/JuHeZhongPayJFenService.java
View file @
932f54cb
This diff is collapsed.
Click to expand it.
src/main/java/com/thinkgem/jeesite/modules/pay/juhezhong/service/JuHeZhongPayService.java
View file @
932f54cb
...
@@ -197,111 +197,4 @@ public JSONObject quickWebPay ( JuhezhongDto dto ) throws Exception {
...
@@ -197,111 +197,4 @@ public JSONObject quickWebPay ( JuhezhongDto dto ) throws Exception {
return
JSONObject
.
parseObject
(
respStr
);
return
JSONObject
.
parseObject
(
respStr
);
}
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
// JuhezhongDto dto = new JuhezhongDto();
// dto.setOrderId(MakeOrderNum.makeOrderNum());//非订单号
// dto.setMerchantId(ComCode.MERCHANT_ID);//商户号
//
// dto.setAmount(10000);//订单金额,单位是分
// dto.setTrxType(3);//交易类型,默认传3
// dto.setType(6);//5 借记卡 只能 D0 6 贷记卡 D0 t1
// dto.setBankNo("6217000066011457475");//支付卡号
// dto.setCvn2("065");//安全码
// dto.setPhone("15902202472");//支付卡预留手机号
// dto.setExpired("0528");//信用卡有效期(MMYY)
// dto.setUserFee(200);//手续费 单位:分 ,D0 业务必传
// if(dto.getType() == 6){
//
// dto.setSettleBankName("建设银行");//结算银行 D0 业务必传
// dto.setSettleBankNo("6217000066011457475");//一个身份证只能对应一个结算卡 D0 业务必传
// dto.setSettleBankPhone("13821934497");//结算卡预留手机号 D0 业务必传
// dto.setName("李波");//开户名 D0 业务必传
// dto.setCertificateCode("53250219850831031X");//开户人身份证号 D0 业务必传
// }
// dto.setMerchantKey(ComCode.MERCHANT_KEY);
// dto.setNotifyUrl("http://youkapay.com:8080/youka-api/api/pay/notifyQuickPay");//通知url
// dto.setFrontUrl("http://youkapay.com:8080/youka-api/api/pay/notifyQuickPay");//前台地址url(保留)
// dto.setTimestamp(System.currentTimeMillis());
// System.out.println(new JuHeZhongPayService().quickBPay(dto));
// String order = MakeOrderNum.makeOrderNum();
// JSONObject dto=new JSONObject();
// dto.put("orderId",order);//订单号
// dto.put("merchantId",ComCode.MERCHANT_ID);//商户号
// dto.put("amount",1000L);//交易金额 单位 分
// dto.put("trxType",3);//交易类型 默认2 T1(2,"T1"), D0(3,"D0");
// dto.put("type",6);// 5 借记卡 只能 d0 6 贷记卡 t1 d0
// dto.put("bankNo","6282161411286681");//支付卡号
// dto.put("cvn2","913");//支付卡号
// dto.put("expired","0421");//支付卡号
// dto.put("phone","15902202472");//支付卡预留手机号
// dto.put("userFee",200);//手续费 单位分
// if(dto.getInteger("type")==6){
// dto.put("settleBankName","建设银行");//结算银行
// dto.put("settleBankNo","6217000066011457475");//结算卡号
// dto.put("settleBankPhone","15902202472");//结算卡预留手机号
// dto.put("name","唐挺");//结算账户
// dto.put("certificateCode","510623198809184419");//身份证号
//
// }
// dto.put("merchantKey",ComCode.MERCHANT_KEY);//商户key
// dto.put("notifyUrl","http://youkapay.com:8080/youka-api/api/pay/notifyQuickPay");//通知url
// dto.put("frontUrl","http://youkapay.com:8080/youka-api/api/pay/notifyQuickPay");//通知url
// dto.put("timestamp",System.currentTimeMillis());//时间戳
// System.out.println(new JuHeZhongPayService().quickPay(dto));
//查询订单
JuhezhongDto
a
=
new
JuhezhongDto
(
);
a
.
setOrderId
(
"20180606105801173000"
);
a
.
setMerchantId
(
ComCode
.
MERCHANT_ID
);
a
.
setMerchantKey
(
ComCode
.
MERCHANT_KEY
);
a
.
setTimestamp
(
System
.
currentTimeMillis
(
)
);
System
.
out
.
println
(
"Json格式:"
+
new
JuHeZhongPayService
(
).
orderQuery
(
a
)
);
// MerchantDto dto = new MerchantDto();
// dto.setMerchantId(ComCode.MERCHANT_ID);
// dto.setOrderId(IdGen.uuid());//不会产生交易订单
// dto.setIdType("01"); // 根据文档说明,证件类型固定为01
// dto.setAccName("唐挺");
// dto.setAccType(1);//1 对私 2对公
// dto.setAccNo("6217000060031684713");
// dto.setAccProvince("天津市");
// dto.setAccCity("天津");
// dto.setBankCode("建设银行");
// dto.setMobile("15902202472");
// dto.setIdNo("6217000066011457475");
// dto.setSettleRate(new BigDecimal(0));
// dto.setExtraRate(new BigDecimal(ComCode.EXTRA_RATE));
// dto.setTimestamp(System.currentTimeMillis());
// dto.setMerchantKey(ComCode.MERCHANT_KEY);
// System.out.println("结果:"+new JuHeZhongPayService().register(dto));
}
// public static void main (String[] args) throws Exception {
//// ApiQuickPayDto request = new ApiQuickPayDto();
//// request.setAmount(10L);
//// request.setBody("23");
//// request.setFrontUrl("");
//// request.setNotifyUrl("");
//// request.setType(0);
//// request.setName("");
//// request.setUrl("");
////
//// JuHeZhongPayService juHeZhongPayService = new JuHeZhongPayService();
//// System.out.println(juHeZhongPayService.quickPay(request).toString());
// ApiQuickPayDto dto = new ApiQuickPayDto();
// dto.setOrderId("Dy58WqJG3MmNpSpQMq3wKZV55OiO48asPzRp4YUBBZUsVEiow7q6CZTQqwrBTl4k");
// dto.setMerchantId(ComCode.MERCHANT_ID);
// dto.setMerchantKey(ComCode.MERCHANT_KEY);
// dto.setTimestamp(System.currentTimeMillis());
//
// Map<String, Object> params = Bean2Map.Entity2Map(dto);
// String signBefore = SignUtils.signBefore(params);
// String sign = SignUtils.sign(signBefore, ComCode.MERCHANT_SECRET);
// params.put("sign", sign);
// String respStr = HttpUtil.post(ComCode.HOST + ComCode.ORDER_QUERY_URL, params);
//
// System.out.println(respStr);
//
// }
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment