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
b68c92e5
Commit
b68c92e5
authored
Jan 17, 2018
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码;
parent
459a64d2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
6 deletions
+21
-6
app/libs/arm64-v8a/libjsonpay.so
app/libs/arm64-v8a/libjsonpay.so
+0
-0
app/libs/libjsonpay.so
app/libs/libjsonpay.so
+0
-0
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/fragment/ManagerFragment.java
...data/zzdpos/ui/marketing/ms/fragment/ManagerFragment.java
+0
-2
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
...n/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
+18
-3
app/src/main/res/layout/item_ms.xml
app/src/main/res/layout/item_ms.xml
+3
-1
No files found.
app/libs/arm64-v8a/libjsonpay.so
0 → 100644
View file @
b68c92e5
File added
app/libs/libjsonpay.so
0 → 100644
View file @
b68c92e5
File added
app/src/main/java/com/xingdata/zzdpos/ui/marketing/ms/fragment/ManagerFragment.java
View file @
b68c92e5
...
...
@@ -10,7 +10,6 @@ import com.xingdata.zzdpos.databinding.FragmentMsManagerBinding;
import
com.xingdata.zzdpos.model.Ms
;
import
com.xingdata.zzdpos.ui.marketing.ms.MsPresenter
;
import
com.xingdata.zzdpos.ui.marketing.ms.adapter.MsAdapter
;
import
com.xingdata.zzdpos.util.RecyclerViewUtil
;
import
java.util.List
;
...
...
@@ -29,7 +28,6 @@ public class ManagerFragment extends BaseFragment<MsPresenter, FragmentMsManager
mMsAdapter
=
new
MsAdapter
();
mViewBinding
.
rlMs
.
setAdapter
(
mMsAdapter
);
mViewBinding
.
rlMs
.
setLayoutManager
(
new
LinearLayoutManager
(
mContext
));
mViewBinding
.
rlMs
.
addItemDecoration
(
new
RecyclerViewUtil
.
GridSpacingItemDecoration
(
1
,
mContext
.
getResources
().
getDimensionPixelOffset
(
R
.
dimen
.
all_margin
),
true
));
// set ms listener
mViewBinding
.
srlMs
.
setOnRefreshListener
(
this
::
refreshMs
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettlePresenter.java
View file @
b68c92e5
...
...
@@ -242,17 +242,32 @@ public class SettlePresenter extends SettleContract.Presenter {
q
.
setChannelAuthCode
(
payCode
);
q
.
setKey
(
"Key"
);
q
.
setNotifyUrl
(
"setNotifyUrl"
);
subscribePay
(
commitOrder
().
flatMap
(
s
->
{
q
.
setOrderNo
(
s
);
return
JniFactory
.
Settle
.
pay
(
JSON
.
toJSONString
(
q
));
}).
flatMap
(
response
->
ApiFactory
.
Saleorder
.
addOrderPayMis
(
mSaleorder
.
pay
(
q
.
getOrderNo
(),
C
.
PAY_CHANNEL
.
CASH
))));
}).
flatMap
(
response
->
ApiFactory
.
Saleorder
.
addOrderPayMis
(
mSaleorder
.
pay
(
q
.
getOrderNo
(),
C
.
PAY_CHANNEL
.
ALI
))));
}
@Override
public
void
payInWechat
(
String
payCode
)
{
Pay
.
Request
q
=
new
Pay
.
Request
();
q
.
setOrderType
(
"1"
);
q
.
setPayChannelType
(
"2"
);
q
.
setDeviceType
(
"2"
);
q
.
setMch_id
(
"11"
);
q
.
setTer_id
(
"11"
);
q
.
setOrderDateTime
(
TimeUtils
.
getNowString
(
new
SimpleDateFormat
(
"yyyymmddHHMMSS"
,
Locale
.
getDefault
())));
q
.
setCurrencyType
(
"156"
);
q
.
setOrderAmt
(
ConvertUtil
.
longToString
(
mSaleorder
.
getOrderPayAmt
()));
q
.
setOrderName
(
"测试"
);
q
.
setChannelAuthCode
(
payCode
);
q
.
setKey
(
"Key"
);
q
.
setNotifyUrl
(
"setNotifyUrl"
);
subscribePay
(
commitOrder
().
flatMap
(
s
->
{
q
.
setOrderNo
(
s
);
return
JniFactory
.
Settle
.
pay
(
JSON
.
toJSONString
(
q
));
}).
flatMap
(
response
->
ApiFactory
.
Saleorder
.
addOrderPayMis
(
mSaleorder
.
pay
(
q
.
getOrderNo
(),
C
.
PAY_CHANNEL
.
WECHAT
))));
}
@Override
...
...
app/src/main/res/layout/item_ms.xml
View file @
b68c92e5
...
...
@@ -5,6 +5,8 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
android:background=
"@mipmap/bg_marketing"
android:foreground=
"?android:attr/selectableItemBackground"
android:orientation=
"vertical"
>
...
...
@@ -40,6 +42,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
<TextView
...
...
@@ -47,7 +50,6 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
...
...
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