Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
93fc9124
Commit
93fc9124
authored
Jul 22, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改缓存保存的文件;在登录页面添加code的上传
parent
a6483d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Cooker.java
...nt_utils/src/main/java/com/rv/component/utils/Cooker.java
+2
-3
LoginRvActivity.java
.../java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
+4
-4
No files found.
component_utils/src/main/java/com/rv/component/utils/Cooker.java
View file @
93fc9124
...
...
@@ -5,13 +5,13 @@ import android.content.SharedPreferences;
public
class
Cooker
{
private
final
static
String
COOK
_FILE
=
"cooker"
;
private
final
static
String
COOK
IE_FILE
=
"cookie"
;
private
static
SharedPreferences
preferences
;
private
static
SharedPreferences
getPreference
(
Context
context
)
{
if
(
preferences
==
null
)
{
preferences
=
context
.
getSharedPreferences
(
COOK_FILE
,
Context
.
MODE_PRIVATE
);
preferences
=
context
.
getSharedPreferences
(
COOK
IE
_FILE
,
Context
.
MODE_PRIVATE
);
}
return
preferences
;
}
...
...
@@ -67,7 +67,6 @@ public class Cooker {
public
static
float
getFloatValue
(
Context
context
,
String
key
,
float
def
)
{
return
getPreference
(
context
).
getFloat
(
key
,
def
);
}
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
)
{
return
getBooleanValue
(
context
,
key
,
false
);
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
View file @
93fc9124
...
...
@@ -20,6 +20,8 @@ import com.ruiwenliu.wrapper.util.RxJavaManager;
import
com.ruiwenliu.wrapper.util.listener.TextChangedListener
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.CacheEnum
;
import
com.rv.component.utils.Cooker
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.frame.rv.config.RvFrameConfig
;
...
...
@@ -115,7 +117,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
processLoginData
((
RegisteredBean
)
result
);
break
;
case
10
:
setDataUser
((
BeanUserInfo
)
result
);
setDataUser
((
BeanUserInfo
)
result
);
break
;
}
}
...
...
@@ -201,14 +203,12 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
map
.
put
(
"username"
,
getPhone
());
map
.
put
(
"mobilecode"
,
getCode
());
map
.
put
(
"type"
,
2
);
map
.
put
(
"code"
,
Cooker
.
getStringValue
(
getApplicationContext
(),
"code"
));
mPresenter
.
postData
(
2
,
ApiConfig
.
HTTP_URL_PWD_LOGIN
,
RegisteredBean
.
class
,
map
,
true
);
}
/**
*
*
*
* 获得手机号
*
* @return
...
...
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