fix 修复协议接口没有按新格式返回的bug

This commit is contained in:
damonyuan 2024-10-20 00:07:13 +08:00
parent f0451376f9
commit d8ff09aadf
1 changed files with 3 additions and 7 deletions

View File

@ -148,13 +148,9 @@ public class IndexServiceImpl implements IIndexService {
*/ */
@Override @Override
public Map<String, String> policy(String type) { public Map<String, String> policy(String type) {
Map<String, String> map = ConfigUtils.getMap("protocol", type); Map<String, String> map = new HashMap<>();
if (map == null) { map.put("title", ConfigUtils.get("agreement", type + "_title", ""));
Map<String, String> m = new LinkedHashMap<>(); map.put("content", ConfigUtils.get("agreement", type + "_content", ""));
m.put("name", "");
m.put("content", "");
return m;
}
return map; return map;
} }