Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
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
android
android_street
Commits
3df8859a
Commit
3df8859a
authored
Aug 06, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品界面添加提交订单接口
parent
6cefe223
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
MainApi.kt
app/src/main/java/com/mints/street/api/MainApi.kt
+1
-1
OpenvipActivity.kt
...src/main/java/com/mints/street/main/my/OpenvipActivity.kt
+4
-2
OpenvipViewModel.kt
...rc/main/java/com/mints/street/main/my/OpenvipViewModel.kt
+1
-1
No files found.
app/src/main/java/com/mints/street/api/MainApi.kt
View file @
3df8859a
...
...
@@ -68,7 +68,7 @@ interface MainApi {
/**
* 支付成功
*/
@POST
(
"api/
trade/
queryVipOrder"
)
@POST
(
"api/queryVipOrder"
)
fun
queryVipOrder
(
@Body
vo
:
@JvmSuppressWildcards
Map
<
String
,
Any
>):
Observable
<
Response
<
BaseResponse
<
Any
>>>
/**
...
...
app/src/main/java/com/mints/street/main/my/OpenvipActivity.kt
View file @
3df8859a
...
...
@@ -352,7 +352,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if
(
isPay
)
{
//支付成功
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showShort
(
"支付成功"
)
viewModel
.
queryVipOrder
(
wxParanBean
.
tid
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showLong
(
"支付成功"
)
finish
()
}
})
{
throwable
->
...
...
@@ -366,7 +367,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if
(
isPay
)
{
//支付成功
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showShort
(
"支付成功"
)
viewModel
.
queryVipOrder
(
wxParanBean
.
tid
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showLong
(
"支付成功"
)
finish
()
}
})
{
throwable
->
...
...
app/src/main/java/com/mints/street/main/my/OpenvipViewModel.kt
View file @
3df8859a
...
...
@@ -94,7 +94,7 @@ class OpenvipViewModel(application: Application) : BaseViewModel(application) {
/**
* 支付成功
*/
fun
queryVipOrder
(
tid
:
Stri
ng
)
{
fun
queryVipOrder
(
tid
:
Lo
ng
)
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"tid"
]
=
tid
ApiModel
.
queryVipOrder
(
lifecycleProvider
,
vo
).
safeSubscribe
(
...
...
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