Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王海
TangKuPos
Commits
808de093
Commit
808de093
authored
Mar 14, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复一个查询的问题;
parent
85ab96a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
pay/src/main/java/com/xingdata/zxpay/PayCenter.java
pay/src/main/java/com/xingdata/zxpay/PayCenter.java
+2
-2
pay/src/main/java/com/xingdata/zxpay/pax/Factory.java
pay/src/main/java/com/xingdata/zxpay/pax/Factory.java
+12
-1
No files found.
pay/src/main/java/com/xingdata/zxpay/PayCenter.java
View file @
808de093
...
...
@@ -68,10 +68,10 @@ public class PayCenter {
*
* @return 查询结果的Observable
*/
public
Observable
<
Response
>
query
()
{
public
Observable
<
Response
>
query
(
int
payChannel
)
{
switch
(
mShopppp
.
getHost
().
getHostMapId
())
{
case
C
.
HOST
.
PAX
:
return
Factory
.
query
();
return
Factory
.
query
(
payChannel
);
default
:
return
Observable
.
just
(
new
Response
(
C
.
PAY_STATE
.
FAIL_CUSTOM
,
"未知渠道"
));
}
...
...
pay/src/main/java/com/xingdata/zxpay/pax/Factory.java
View file @
808de093
...
...
@@ -95,10 +95,21 @@ public class Factory extends com.xingdata.zxpay.api.Factory {
*
* @return 查询结果
*/
public
static
Observable
<
com
.
xingdata
.
zxpay
.
api
.
Response
>
query
()
{
public
static
Observable
<
com
.
xingdata
.
zxpay
.
api
.
Response
>
query
(
int
payChannel
)
{
Request
request
=
Request
.
create
(
C
.
METHOD
.
QUERY
);
request
.
setOutTransactionNo
(
PayCenter
.
getInstance
().
mShopppp
.
getPosppp
().
getHposTrace
());
request
.
setTimeStart
(
orderMap
.
get
(
request
.
getOutTransactionNo
()));
switch
(
payChannel
)
{
case
com
.
xingdata
.
zxpay
.
C
.
PAY_CHANNEL
.
ALI
:
request
.
setKey
(
PayCenter
.
getInstance
().
mShopppp
.
getHshopKeyAlipay
());
break
;
case
com
.
xingdata
.
zxpay
.
C
.
PAY_CHANNEL
.
WECHAT
:
request
.
setKey
(
PayCenter
.
getInstance
().
mShopppp
.
getHshopKeyWechat
());
break
;
case
com
.
xingdata
.
zxpay
.
C
.
PAY_CHANNEL
.
BANK
:
request
.
setKey
(
PayCenter
.
getInstance
().
mShopppp
.
getHshopKeyUnipay
());
break
;
}
request
.
sign
();
return
run
(
Api
.
getInstance
().
service
.
action
(
request
))
.
map
(
new
ResultFilter
());
...
...
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