Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shop-fe2
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
90ce22dd7cbaf4b6fcf2e59e953fc1caa7e56b27
1 parent
11ea5574
权限 日志
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
code/apps/common/interfaces/login.js
server/interfaces/common.login.js
code/apps/common/interfaces/login.js
View file @
90ce22d
...
...
@@ -61,15 +61,15 @@ module.exports={
},
function
(
error1
,
httpResponse1
,
rebody1
)
{
if
(
!
error1
&&
httpResponse1
.
statusCode
==
200
)
{
userInfo
.
menu
=
Utils
.
createrMenus
(
JSON
.
parse
(
rebody1
).
data
);
console
.
log
(
"调用菜单
"
);
console
.
log
(
"调用菜单
成功,开始调用权限:"
+
Iaccount
.
allRight
);
//调用权限
request
({
url
:
Iaccount
.
allRight
,
form
:
'[false]'
},
function
(
error2
,
httpResponse2
,
rebody2
)
{
if
(
!
error2
&&
httpResponse2
.
statusCode
==
200
)
{
console
.
log
(
"调用权限"
,
rebody2
);
console
.
log
(
"调用权限"
+
rebody2
);
if
(
!
error2
&&
httpResponse2
.
statusCode
==
200
&&
rebody2
)
{
userInfo
.
right
=
{};
JSON
.
parse
(
rebody2
).
data
.
forEach
(
function
(
data
)
{
if
(
data
.
platform_id
==
Iaccount
.
WEBSITE
)
{
...
...
server/interfaces/common.login.js
View file @
90ce22d
...
...
@@ -61,15 +61,15 @@ module.exports={
},
function
(
error1
,
httpResponse1
,
rebody1
)
{
if
(
!
error1
&&
httpResponse1
.
statusCode
==
200
)
{
userInfo
.
menu
=
Utils
.
createrMenus
(
JSON
.
parse
(
rebody1
).
data
);
console
.
log
(
"调用菜单
"
);
console
.
log
(
"调用菜单
成功,开始调用权限:"
+
Iaccount
.
allRight
);
//调用权限
request
({
url
:
Iaccount
.
allRight
,
form
:
'[false]'
},
function
(
error2
,
httpResponse2
,
rebody2
)
{
if
(
!
error2
&&
httpResponse2
.
statusCode
==
200
)
{
console
.
log
(
"调用权限"
,
rebody2
);
console
.
log
(
"调用权限"
+
rebody2
);
if
(
!
error2
&&
httpResponse2
.
statusCode
==
200
&&
rebody2
)
{
userInfo
.
right
=
{};
JSON
.
parse
(
rebody2
).
data
.
forEach
(
function
(
data
)
{
if
(
data
.
platform_id
==
Iaccount
.
WEBSITE
)
{
...
...
Please
register
or
login
to post a comment