记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
e512a18a
Commit
e512a18a
authored
Feb 21, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付问题。
parent
ef3df53b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
7 deletions
+38
-7
WepayPayRespDto.java
...et/service/dragon/channel/wepay/resp/WepayPayRespDto.java
+38
-7
No files found.
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/resp/WepayPayRespDto.java
View file @
e512a18a
...
@@ -36,19 +36,50 @@ public class WepayPayRespDto {
...
@@ -36,19 +36,50 @@ public class WepayPayRespDto {
private
String
tradeType
;
//MWEB
private
String
tradeType
;
//MWEB
@XStreamAlias
(
"mweb_url"
)
@XStreamAlias
(
"mweb_url"
)
private
String
mwebUrl
;
//https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx111130490949693ab00f679072ea730000&package=2011082926
private
String
mwebUrl
;
//https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx111130490949693ab00f679072ea730000&package=2011082926
@XStreamAlias
(
"openid"
)
private
String
openid
;
@XStreamAlias
(
"is_subscribe"
)
private
String
is_subscribe
;
@XStreamAlias
(
"bank_type"
)
private
String
bank_type
;
@XStreamAlias
(
"fee_type"
)
private
String
fee_type
;
@XStreamAlias
(
"total_fee"
)
private
String
total_fee
;
@XStreamAlias
(
"cash_fee_type"
)
private
String
cash_fee_type
;
@XStreamAlias
(
"cash_fee"
)
private
String
cash_fee
;
@XStreamAlias
(
"transaction_id"
)
private
String
transaction_id
;
@XStreamAlias
(
"out_trade_no"
)
private
String
out_trade_no
;
@XStreamAlias
(
"attach"
)
private
String
attach
;
@XStreamAlias
(
"time_end"
)
private
String
time_end
;
public
static
void
xmlToBean
(){
public
static
void
xmlToBean
(){
String
xmlStr
=
"<xml><return_code><![CDATA[SUCCESS]]></return_code>\n"
+
String
xmlStr
=
"<xml><return_code><![CDATA[SUCCESS]]></return_code>\n"
+
"<return_msg><![CDATA[OK]]></return_msg>\n"
+
"<return_msg><![CDATA[OK]]></return_msg>\n"
+
"<result_code><![CDATA[SUCCESS]]></result_code>\n"
+
"<result_code><![CDATA[SUCCESS]]></result_code>\n"
+
"<mch_id><![CDATA[1551961491]]></mch_id>\n"
+
"<mch_id><![CDATA[1551961491]]></mch_id>\n"
+
"<appid><![CDATA[wx3498304dda39c5a1]]></appid>\n"
+
"<appid><![CDATA[wx86f9777acf2cb585]]></appid>\n"
+
"<nonce_str><![CDATA[Y6Czfx4lhuSv0yUD]]></nonce_str>\n"
+
"<nonce_str><![CDATA[sBhYlCmhZYveVghZ]]></nonce_str>\n"
+
"<sign><![CDATA[97001E77813055D03E3009F67A836D62]]></sign>\n"
+
"<sign><![CDATA[C3760928A28B51A74A41F856D0B0B034]]></sign>\n"
+
"<prepay_id><![CDATA[wx111130490949693ab00f679072ea730000]]></prepay_id>\n"
+
"<openid><![CDATA[oWadFuJlPcQS_iD1YQGfJ-cfVKQI]]></openid>\n"
+
"<trade_type><![CDATA[MWEB]]></trade_type>\n"
+
"<is_subscribe><![CDATA[N]]></is_subscribe>\n"
+
"<mweb_url><![CDATA[https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx111130490949693ab00f679072ea730000&package=2011082926]]></mweb_url>\n"
+
"<trade_type><![CDATA[MICROPAY]]></trade_type>\n"
+
"</xml> "
;
"<bank_type><![CDATA[OTHERS]]></bank_type>\n"
+
"<fee_type><![CDATA[CNY]]></fee_type>\n"
+
"<total_fee>1</total_fee>\n"
+
"<cash_fee_type><![CDATA[CNY]]></cash_fee_type>\n"
+
"<cash_fee>1</cash_fee>\n"
+
"<transaction_id><![CDATA[4200001413202202214878147508]]></transaction_id>\n"
+
"<out_trade_no><![CDATA[PAY202202211642184423445159]]></out_trade_no>\n"
+
"<attach><![CDATA[]]></attach>\n"
+
"<time_end><![CDATA[20220221164220]]></time_end>\n"
+
"</xml> "
;
WepayPayRespDto
respDto
=
XmlUtil
.
toBean
(
xmlStr
,
WepayPayRespDto
.
class
);
WepayPayRespDto
respDto
=
XmlUtil
.
toBean
(
xmlStr
,
WepayPayRespDto
.
class
);
System
.
out
.
println
(
"respDto.getAppid()=="
+
respDto
.
getAppid
());
System
.
out
.
println
(
"respDto.getAppid()=="
+
respDto
.
getAppid
());
System
.
out
.
println
(
"respDto.getMwebUrl()==="
+
respDto
.
getMwebUrl
());
System
.
out
.
println
(
"respDto.getMwebUrl()==="
+
respDto
.
getMwebUrl
());
...
...
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