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
8d03c471
Commit
8d03c471
authored
Aug 06, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_1.0.0' of
http://39.97.65.143:81/android/android_street
into fry_dev
parents
fd038c65
3df8859a
Changes
3
Hide 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 @
8d03c471
...
@@ -68,7 +68,7 @@ interface MainApi {
...
@@ -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
>>>
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 @
8d03c471
...
@@ -352,7 +352,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
...
@@ -352,7 +352,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if
(
isPay
)
{
if
(
isPay
)
{
//支付成功
//支付成功
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showShort
(
"支付成功"
)
viewModel
.
queryVipOrder
(
wxParanBean
.
tid
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showLong
(
"支付成功"
)
finish
()
finish
()
}
}
})
{
throwable
->
})
{
throwable
->
...
@@ -366,7 +367,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
...
@@ -366,7 +367,8 @@ class OpenvipActivity : BaseActivity<ActivityOpenvipBinding, OpenvipViewModel>()
if
(
isPay
)
{
if
(
isPay
)
{
//支付成功
//支付成功
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
UserManager
.
INSTANCE
.
setVipFlag
(
true
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showShort
(
"支付成功"
)
viewModel
.
queryVipOrder
(
wxParanBean
.
tid
)
com
.
blankj
.
utilcode
.
util
.
ToastUtils
.
showLong
(
"支付成功"
)
finish
()
finish
()
}
}
})
{
throwable
->
})
{
throwable
->
...
...
app/src/main/java/com/mints/street/main/my/OpenvipViewModel.kt
View file @
8d03c471
...
@@ -94,7 +94,7 @@ class OpenvipViewModel(application: Application) : BaseViewModel(application) {
...
@@ -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
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"tid"
]
=
tid
vo
[
"tid"
]
=
tid
ApiModel
.
queryVipOrder
(
lifecycleProvider
,
vo
).
safeSubscribe
(
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