Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
ba60f4aa
Commit
ba60f4aa
authored
May 11, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
cb2ffa05
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
MintsApplication.java
...p/src/main/java/com/mints/goodmoney/MintsApplication.java
+1
-1
HomePresenter.kt
.../java/com/mints/goodmoney/mvp/presenters/HomePresenter.kt
+0
-8
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/MintsApplication.java
View file @
ba60f4aa
...
...
@@ -158,7 +158,7 @@ public class MintsApplication extends MultiDexApplication {
// 自定义logger
bindLogger
();
//
YyzManager.INSTANCE.initYyz(this);
YyzManager
.
INSTANCE
.
initYyz
(
this
);
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/HomePresenter.kt
View file @
ba60f4aa
...
...
@@ -221,21 +221,17 @@ class HomePresenter : BasePresenter<HomeView>() {
* 公众号弹框参数传递
*/
fun
setWechatTipsStatus
(
status
:
Int
)
{
LogUtil
.
d
(
"GzhPresenter"
,
"setWechatTipsStatus*******************************************"
)
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"status"
]
=
status
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
setWechatTipsStatus
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
Any
>>()
{
override
fun
onCompleted
()
{
LogUtil
.
d
(
"GzhPresenter"
,
"********************onCompleted**********************"
)
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
LogUtil
.
d
(
"GzhPresenter"
,
"********************onError**********************${e.printStackTrace()}"
)
e
.
printStackTrace
().
toString
()
if
(
isLinkView
)
return
}
...
...
@@ -245,13 +241,9 @@ class HomePresenter : BasePresenter<HomeView>() {
val
message
:
String
=
baseResponse
.
getMessage
()
when
(
code
)
{
200
->
{
//请求成功后可以在这里响应请求
LogUtil
.
d
(
"GzhPresenter"
,
"********************成功了**********************"
)
}
else
->
{
view
.
showToast
(
message
)
//请求成功后可以在这里响应请求
LogUtil
.
d
(
"GzhPresenter"
,
"*********************不成功*********************"
)
}
}
}
...
...
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