Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
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_flowbox
Commits
fd3309b6
Commit
fd3309b6
authored
Jul 20, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加奖励弹窗显示金币,去除离线收益功能
parent
4785d2c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
TrackPresenter.java
...java/com/mints/flowbox/mvp/presenters/TrackPresenter.java
+12
-2
LoanService.java
app/src/main/java/com/mints/flowbox/net/LoanService.java
+1
-1
MainActivity.kt
.../main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
+6
-6
No files found.
app/src/main/java/com/mints/flowbox/mvp/presenters/TrackPresenter.java
View file @
fd3309b6
...
...
@@ -401,7 +401,7 @@ public class TrackPresenter extends BaseTrackPresenter {
subscription
=
loanService
.
reportAddCoinMsg
(
vo
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribeOn
(
loanApplication
.
defaultSubscribeScheduler
())
.
subscribe
(
new
BaseSubscriber
<
BaseResponse
<
Object
>>()
{
.
subscribe
(
new
BaseSubscriber
<
BaseResponse
<
Json
Object
>>()
{
@Override
public
void
onCompleted
()
{
}
...
...
@@ -411,7 +411,17 @@ public class TrackPresenter extends BaseTrackPresenter {
}
@Override
public
void
onNext
(
BaseResponse
<
Object
>
baseResponse
)
{
public
void
onNext
(
BaseResponse
<
JsonObject
>
baseResponse
)
{
try
{
if
(
baseResponse
.
getStatus
()
==
200
)
{
JsonObject
data
=
baseResponse
.
getData
();
if
(
data
!=
null
)
{
AppConfig
.
awardCoin
=
data
.
get
(
"coin"
).
getAsInt
();
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
});
}
...
...
app/src/main/java/com/mints/flowbox/net/LoanService.java
View file @
fd3309b6
...
...
@@ -135,7 +135,7 @@ public interface LoanService {
* 提交任务
*/
@POST
(
"api/reportAddCoinMsg"
)
Observable
<
BaseResponse
<
Object
>>
reportAddCoinMsg
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
Json
Object
>>
reportAddCoinMsg
(
@Body
Map
<
String
,
Object
>
vo
);
/**
* 获取用户配置信息
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/MainActivity.kt
View file @
fd3309b6
...
...
@@ -475,12 +475,12 @@ class MainActivity : BaseActivity(), MainView, View.OnClickListener {
// }
// 离线收益
if
(
data
.
offlineBean
.
offlineIncome
>
0
)
{
val
bundle
=
Bundle
()
bundle
.
putInt
(
Constant
.
MAIN_CUR_COIN
,
data
.
offlineBean
.
offlineIncome
)
bundle
.
putString
(
Constant
.
MAIN_CARRIER_TYPE
,
Constant
.
CARRIER_OFFLINE_DOUBLE
)
readyGo
(
AwardActivity
::
class
.
java
,
bundle
)
}
//
if (data.offlineBean.offlineIncome > 0) {
//
val bundle = Bundle()
//
bundle.putInt(Constant.MAIN_CUR_COIN, data.offlineBean.offlineIncome)
//
bundle.putString(Constant.MAIN_CARRIER_TYPE, Constant.CARRIER_OFFLINE_DOUBLE)
//
readyGo(AwardActivity::class.java, bundle)
//
}
}
/** 初始化信息流 */
...
...
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