Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
ee7d3cf0
Commit
ee7d3cf0
authored
Nov 20, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
e5fe0ca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
MemberApplyController.java
...java/com/egolm/film/api/member/MemberApplyController.java
+9
-3
Common.java
src/main/java/com/egolm/film/util/Common.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/member/MemberApplyController.java
View file @
ee7d3cf0
...
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.member.service.MemberService
;
import
com.egolm.film.api.member.service.MemberTokenService
;
import
com.egolm.film.api.member.service.MemberTokenService
;
...
@@ -43,9 +44,14 @@ public class MemberApplyController {
...
@@ -43,9 +44,14 @@ public class MemberApplyController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
)
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
)
})
})
public
Object
list
()
{
public
Object
list
(
String
email
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
null
;
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
if
(
StringUtil
.
isNotBlank
(
email
))
{
member_id
=
memberService
.
getMemberByEmail
(
email
).
getId
();
}
else
{
LoginToken
loginToken
=
tokenService
.
getToken
();
member_id
=
(
Integer
)
loginToken
.
getId
();
}
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryListByMemberID
(
member_id
);
List
<
Map
<
String
,
Object
>>
list
=
memberService
.
queryListByMemberID
(
member_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
...
...
src/main/java/com/egolm/film/util/Common.java
View file @
ee7d3cf0
...
@@ -22,7 +22,7 @@ public class Common {
...
@@ -22,7 +22,7 @@ public class Common {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
encodePassword
(
"
123456
"
,
"78hzar"
));
System
.
out
.
println
(
encodePassword
(
"
Siff@2018
"
,
"78hzar"
));
System
.
out
.
println
(
getGenerateString
(
6
));
System
.
out
.
println
(
getGenerateString
(
6
));
}
}
...
...
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