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
da02adb3
Commit
da02adb3
authored
Jan 26, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付方式;
parent
08eb5f69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleContract.java
...in/java/com/xingdata/zzdpos/ui/settle/SettleContract.java
+3
-1
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
...n/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
+2
-2
app/src/main/java/com/xingdata/zzdpos/ui/settle/dialog/PayingDialog.java
...va/com/xingdata/zzdpos/ui/settle/dialog/PayingDialog.java
+1
-1
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleContract.java
View file @
da02adb3
...
...
@@ -257,8 +257,10 @@ interface SettleContract {
/**
* 支付中页面 - 查看支付状态
*
* @param payType 支付类型
*/
public
abstract
void
checkPayState
();
public
abstract
void
checkPayState
(
int
payType
);
/**
* 支付结果页面 - 完成订单
...
...
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
View file @
da02adb3
...
...
@@ -302,7 +302,7 @@ public class SettlePresenter extends SettleContract.Presenter {
}
@Override
public
void
checkPayState
()
{
public
void
checkPayState
(
int
payType
)
{
mView
.
showLoadingDialog
();
JniFactory
.
Settle
.
query
()
.
doFinally
(()
->
mView
.
dismissLoadingDialog
())
...
...
@@ -310,7 +310,7 @@ public class SettlePresenter extends SettleContract.Presenter {
com
.
xingdata
.
zzdpos
.
api
.
Pay
.
Response
r1
=
JSON
.
parseObject
(
s
.
replace
(
"\\"
,
""
),
com
.
xingdata
.
zzdpos
.
api
.
Pay
.
Response
.
class
);
switch
(
r1
.
getResponseCode
())
{
case
"0000"
:
subscribePay
(
commitOrder
().
flatMap
(
orderNo
->
ApiFactory
.
Saleorder
.
addOrderPayMis
(
mSaleorder
.
pay
(
orderNo
,
C
.
PAY_CHANNEL
.
ALI
)).
doFinally
(()
->
mView
.
dismissLoadingDialog
())));
subscribePay
(
commitOrder
().
flatMap
(
orderNo
->
ApiFactory
.
Saleorder
.
addOrderPayMis
(
mSaleorder
.
pay
(
orderNo
,
payType
)).
doFinally
(()
->
mView
.
dismissLoadingDialog
())));
break
;
case
"0098"
:
mView
.
showMsg
(
"交易处理中"
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/settle/dialog/PayingDialog.java
View file @
da02adb3
...
...
@@ -27,7 +27,7 @@ public class PayingDialog extends BaseDialog<SettlePresenter, DialogSettlePaying
@Override
public
void
initView
()
{
mViewBinding
.
tvCheck
.
setOnClickListener
(
view
->
mPresenter
.
checkPayState
());
mViewBinding
.
tvCheck
.
setOnClickListener
(
view
->
mPresenter
.
checkPayState
(
mType
));
switch
(
mType
)
{
case
C
.
PAY_CHANNEL
.
ALI
:
mViewBinding
.
ivLogo
.
setImageResource
(
R
.
mipmap
.
pay_alipay
);
...
...
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