Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4661b4c1
authored
Dec 18, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成基本开发
1 parent
323ff54b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/com/glsx/controller/CustomerMgrController.java
src/main/java/com/glsx/controller/IceOpenApiController.java
src/main/java/com/glsx/controller/CustomerMgrController.java
View file @
4661b4c
...
...
@@ -72,10 +72,10 @@ public class CustomerMgrController {
@RequestMapping
(
value
=
"/login"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
R
login
(
PlatformCustomer
customer
)
{
int
num
=
customerMgrService
.
login
(
customer
);
if
(
num
==
0
)
{
PlatformCustomer
platformCustomer
=
customerMgrService
.
login
(
customer
);
if
(
platformCustomer
==
null
)
{
return
R
.
error
(
"登陆失败"
);
}
return
R
.
ok
(
"登陆成功"
);
return
R
.
ok
(
"登陆成功"
)
.
data
(
platformCustomer
)
;
}
}
src/main/java/com/glsx/controller/IceOpenApiController.java
View file @
4661b4c
...
...
@@ -21,7 +21,7 @@ public class IceOpenApiController {
@RequestMapping
(
value
=
"/getDataView"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
R
getUserInfo
(
int
userId
)
{
public
R
getUserInfo
(
int
userId
,
int
deviceType
)
{
Map
<
String
,
Integer
>
dataViewMap
=
iceOpenApiService
.
getDataView
(
userId
);
return
R
.
ok
().
data
(
dataViewMap
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment