Commit 515ab1a9 by 陶光胜

门店品牌变更

parent 24a9f3f8
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment