Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
29e28e7c
Commit
29e28e7c
authored
Sep 04, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
dd249077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
UserGenerator.dart
lib/Annotations/Generator/UserGenerator.dart
+1
-1
UserUtil.user.dart
lib/userModel/user/UserUtil.user.dart
+10
-10
No files found.
lib/Annotations/Generator/UserGenerator.dart
View file @
29e28e7c
...
...
@@ -46,7 +46,7 @@ class UserGenerator extends GeneratorForAnnotation<UserCenter> {
}
Observable<String> get
${fieldData.name}
(){
if(_
${fieldData.name}
!=null){
return Observable.fromFuture(Future.value(
"
_
$
{
fieldData
.
name
}
"
));
return Observable.fromFuture(Future.value(
_
${fieldData.name}
));
}
return Observable.fromFuture(getStringKv("
$
{
key
}
"));
}
...
...
lib/userModel/user/UserUtil.user.dart
View file @
29e28e7c
...
...
@@ -34,7 +34,7 @@ class UserCenterImpl {
Observable
<
String
>
getUser_id
()
{
if
(
_User_id
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_User_id"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_User_id
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"user_uid"
));
}
...
...
@@ -52,7 +52,7 @@ class UserCenterImpl {
Observable
<
String
>
getnick_name
()
{
if
(
_nick_name
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_nick_name"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_nick_name
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"username"
));
}
...
...
@@ -70,7 +70,7 @@ class UserCenterImpl {
Observable
<
String
>
getprofile_pic
()
{
if
(
_profile_pic
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_profile_pic"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_profile_pic
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"potrait"
));
}
...
...
@@ -123,7 +123,7 @@ class UserCenterImpl {
Observable
<
String
>
getgender
()
{
if
(
_gender
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_gender"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_gender
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"gender"
));
}
...
...
@@ -141,7 +141,7 @@ class UserCenterImpl {
Observable
<
String
>
getcity_id
()
{
if
(
_city_id
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_city_id"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_city_id
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"current_city_id"
));
}
...
...
@@ -176,7 +176,7 @@ class UserCenterImpl {
Observable
<
String
>
getcountry_id
()
{
if
(
_country_id
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_country_id"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_country_id
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"country_id"
));
}
...
...
@@ -212,7 +212,7 @@ class UserCenterImpl {
Observable
<
String
>
getquestion_url
()
{
if
(
_question_url
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_question_url"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_question_url
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"question_url"
));
}
...
...
@@ -249,7 +249,7 @@ class UserCenterImpl {
Observable
<
String
>
getcountry_info_name
()
{
if
(
_country_info_name
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_country_info_name"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_country_info_name
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"country_name"
));
}
...
...
@@ -267,7 +267,7 @@ class UserCenterImpl {
Observable
<
String
>
getcountry_info_id
()
{
if
(
_country_info_id
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_country_info_id"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_country_info_id
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"country_id"
));
}
...
...
@@ -286,7 +286,7 @@ class UserCenterImpl {
Observable
<
String
>
getcountry_info_language
()
{
if
(
_country_info_language
!=
null
)
{
return
Observable
.
fromFuture
(
Future
.
value
(
"_country_info_language"
));
return
Observable
.
fromFuture
(
Future
.
value
(
_country_info_language
));
}
return
Observable
.
fromFuture
(
getStringKv
(
"country_language"
));
}
...
...
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