Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
Overview
Overview
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
base_platform_enterprise
gic-store
Commits
515ab1a9
Commit
515ab1a9
authored
Mar 16, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店品牌变更
parent
24a9f3f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
StoreOpenApiServiceImpl.java
...gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
+3
-4
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
View file @
515ab1a9
...
...
@@ -760,8 +760,6 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
* @return
*/
private
boolean
hasAuth
(
String
appId
,
Integer
enterpriseId
,
Integer
storeInfoId
)
{
Map
<
String
,
Object
>
storeMap
=
new
HashMap
<>(
16
);
Map
<
String
,
Object
>
regionMap
=
new
HashMap
<>(
16
);
Map
<
Integer
,
Integer
>
result
=
getAuthByAppId
(
appId
,
enterpriseId
);
if
(
MapUtils
.
isEmpty
(
result
))
{
return
true
;
...
...
@@ -799,8 +797,8 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
private
Map
<
Integer
,
Integer
>
getAuthByAppId
(
String
appId
,
Integer
enterpriseId
)
{
Map
<
Integer
,
Integer
>
result
=
new
HashMap
<>();
result
.
put
(-
99
,
-
99
);
ServiceResponse
<
ApplicationResourceDTO
>
res
=
authorizeService
.
findResourceByEnterpriseIdAndAppId
(
Long
.
valueOf
(
enterpriseId
),
appId
);
ServiceResponse
<
ApplicationResourceDTO
>
res
=
authorizeService
.
findResourceByEnterpriseIdAndAppId
(
Long
.
valueOf
(
enterpriseId
),
appId
);
LOGGER
.
info
(
"应用资源组内容:{}"
,
JSON
.
toJSONString
(
res
)
);
if
(
res
.
isSuccess
())
{
ApplicationResourceDTO
resourceDTO
=
res
.
getResult
();
if
(
resourceDTO
!=
null
)
{
...
...
@@ -835,6 +833,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
}
else
{
LOGGER
.
info
(
"对外API权限校验结果:{}"
,
JSON
.
toJSONString
(
res
));
}
LOGGER
.
info
(
"应用的门店权限:{}"
,
JSON
.
toJSONString
(
result
));
return
result
;
}
}
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