Commit 81b267b0 authored by 赵啸非's avatar 赵啸非

修改应用编码校验

parent 02513f42
......@@ -271,7 +271,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
if (!ObjectUtils.isEmpty(siteTreeSelects)) {
return siteTreeSelects;
} else {
return siteTreeMap.get(0);
return siteTreeMap.get(1);
}
}
......
......@@ -127,7 +127,7 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
try {
Context context = new Context();
UserEntity userEntity = new UserEntity();
userEntity.setId(-1L);
userEntity.setId(1L);
context.setUser(userEntity);
List<SiteTreeSelect> siteTree = this.service.getSiteTree(context);
model.put("siteTree", siteTree);
......
......@@ -70,6 +70,11 @@ Authorization: eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl91c2VyX2tleSI6IjM1OmVjZTkyMWQ1MzY2
Accept: application/json
###构建站点树
GET {{baseUrl}}/site/getAllSiteTree
Accept: application/json
###站点列表
POST {{baseUrl}}/site/getFlatSitesByAreaCode
Authorization: {{authToken}}
......
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