记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
eb6004c8
Commit
eb6004c8
authored
Jul 28, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善登陆
parent
393db94f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
SweetLoginController.java
...uidnet/service/sweet/controller/SweetLoginController.java
+1
-2
SweetTemplateController.java
...net/service/sweet/controller/SweetTemplateController.java
+6
-9
SweetLoginServiceImpl.java
...net/service/sweet/service/impl/SweetLoginServiceImpl.java
+6
-1
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetLoginController.java
View file @
eb6004c8
...
@@ -34,8 +34,7 @@ public class SweetLoginController {
...
@@ -34,8 +34,7 @@ public class SweetLoginController {
@RequestParam
()
String
iv
,
@RequestParam
()
String
iv
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
)
{
)
{
sweetLoginService
.
userInfo
(
code
,
encryptedData
,
iv
,
type
);
return
sweetLoginService
.
userInfo
(
code
,
encryptedData
,
iv
,
type
);
return
ResponseDto
.
success
();
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetTemplateController.java
View file @
eb6004c8
...
@@ -7,10 +7,7 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -7,10 +7,7 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
tags
=
"公众号模版消息"
)
@Api
(
tags
=
"公众号模版消息"
)
@RestController
@RestController
...
@@ -38,13 +35,13 @@ public class SweetTemplateController {
...
@@ -38,13 +35,13 @@ public class SweetTemplateController {
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
@
Ge
tMapping
(
"remind"
)
@
Pos
tMapping
(
"remind"
)
@ApiOperation
(
"提醒记录"
)
@ApiOperation
(
"提醒记录"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"
query
"
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"微信code"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
form
"
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"微信code"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
query
"
,
dataType
=
"String"
,
name
=
"encryptedData"
,
value
=
"encryptedData"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
form
"
,
dataType
=
"String"
,
name
=
"encryptedData"
,
value
=
"encryptedData"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
query
"
,
dataType
=
"String"
,
name
=
"iv"
,
value
=
"iv"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
form
"
,
dataType
=
"String"
,
name
=
"iv"
,
value
=
"iv"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"
query
"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"1草莓 2五百里 3mdsk"
),
@ApiImplicitParam
(
type
=
"
form
"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"1草莓 2五百里 3mdsk"
),
})
})
public
ResponseDto
remind
(
public
ResponseDto
remind
(
@RequestParam
()
String
code
,
@RequestParam
()
String
code
,
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetLoginServiceImpl.java
View file @
eb6004c8
...
@@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.Objects
;
import
java.util.Objects
;
/**
/**
...
@@ -82,7 +83,11 @@ public class SweetLoginServiceImpl {
...
@@ -82,7 +83,11 @@ public class SweetLoginServiceImpl {
String
unionId
=
sessionInfo
.
getUnionid
();
String
unionId
=
sessionInfo
.
getUnionid
();
String
openId
=
sessionInfo
.
getOpenid
();
String
openId
=
sessionInfo
.
getOpenid
();
return
ResponseDto
.
success
();
HashMap
userInfo
=
new
HashMap
();
userInfo
.
put
(
"unionId"
,
unionId
);
userInfo
.
put
(
"openId"
,
openId
);
return
ResponseDto
.
success
(
userInfo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
return
ResponseDto
.
failure
();
}
}
...
...
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