Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
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_vediosocial
Commits
c9a9129c
Commit
c9a9129c
authored
Feb 18, 2025
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b2192874
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
1 deletion
+43
-1
RealAuthPresenter.kt
...om/duben/loveplayletd/mvp/presenters/RealAuthPresenter.kt
+35
-0
LoanService.java
...src/main/java/com/duben/loveplayletd/net/LoanService.java
+6
-0
RealAuthActivity.kt
...a/com/duben/loveplayletd/ui/activitys/RealAuthActivity.kt
+2
-0
fragment_square_list.xml
video/app/src/main/res/layout/fragment_square_list.xml
+0
-1
No files found.
video/app/src/main/java/com/duben/loveplayletd/mvp/presenters/RealAuthPresenter.kt
View file @
c9a9129c
...
...
@@ -10,6 +10,41 @@ import java.util.HashMap
class
RealAuthPresenter
:
BasePresenter
<
RealAuthView
>()
{
fun
getFacePage
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
facePage
,
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
view
.
hideLoading
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>)
{
if
(
isLinkView
)
return
view
.
hideLoading
()
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
}
else
->
{
view
.
showToast
(
message
)
}
}
}
override
fun
onError
(
e
:
Throwable
?)
{
if
(
isLinkView
)
return
view
.
hideLoading
()
view
.
showToast
(
e
?.
message
)
view
.
getUserInfoFail
()
}
})
}
fun
getUserInfo
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
userInfo
,
...
...
video/app/src/main/java/com/duben/loveplayletd/net/LoanService.java
View file @
c9a9129c
...
...
@@ -570,6 +570,12 @@ public interface LoanService {
@POST
(
"roseApi/hall/userHallMsg"
)
Observable
<
BaseResponse
<
UserHallMsg
>>
getUserHallMsg
();
/**
* 认证页面
*/
@POST
(
"roseApi/face/getFacePage"
)
Observable
<
BaseResponse
<
JsonObject
>>
getFacePage
();
/**
* 默认http工厂
*/
...
...
video/app/src/main/java/com/duben/loveplayletd/ui/activitys/RealAuthActivity.kt
View file @
c9a9129c
...
...
@@ -106,6 +106,8 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
}
else
{
changeStepStatus
(
1
)
}
realAuthPresenter
.
getFacePage
()
}
private
fun
initAddressData
()
{
...
...
video/app/src/main/res/layout/fragment_square_list.xml
View file @
c9a9129c
...
...
@@ -15,7 +15,6 @@
android:id=
"@+id/rcy_square_list"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:minHeight=
"600dp"
android:overScrollMode=
"never"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
...
...
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