Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
77e16d67
Commit
77e16d67
authored
Jan 29, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugFix
parent
f430b18a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/main/java/tech/starwin/mvp/api/LoanApi.java
+3
-0
src/main/java/tech/starwin/mvp/presenter/LoanPresenter.java
+5
-2
No files found.
src/main/java/tech/starwin/mvp/api/LoanApi.java
View file @
77e16d67
...
...
@@ -57,6 +57,9 @@ public interface LoanApi {
@GET
(
"loanapp/product_default"
)
Observable
<
List
<
ProductBean
>>
getProductsDefault
();
@GET
(
"loanapp/product"
)
Observable
<
List
<
ProductBean
>>
getProducts
();
/**
* 获取最新的贷款申请信息
*/
...
...
src/main/java/tech/starwin/mvp/presenter/LoanPresenter.java
View file @
77e16d67
...
...
@@ -104,9 +104,12 @@ public class LoanPresenter extends BasePresenter<LoanApi> {
* 商品列表
*/
public
void
getProductList
(
String
action
)
{
if
(
TextUtils
.
isEmpty
(
LoginManager
.
get
().
getToken
()))
{
handleRequest
(
action
,
apiService
.
getProductsDefault
());
}
else
{
handleRequest
(
action
,
apiService
.
getProducts
());
}
}
/**
* 获取银行列表
...
...
@@ -166,7 +169,7 @@ public class LoanPresenter extends BasePresenter<LoanApi> {
* 是否授权数据
*/
public
void
getHarvestGrant
(
String
action
)
{
handleRequest
(
action
,
apiService
.
getHarvestGrant
(
LoginManager
.
get
().
getToken
()));
handleRequest
(
action
,
apiService
.
getHarvestGrant
(
LoginManager
.
get
().
getToken
()));
}
...
...
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