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
public Map<String, String> policy(String type) {
Map<String, String> map = ConfigUtils.getMap("protocol", type);
if (map == null) {
Map<String, String> m = new LinkedHashMap<>();
m.put("name", "");
m.put("content", "");
return m;
}
Map<String, String> map = new HashMap<>();
map.put("title", ConfigUtils.get("agreement", type + "_title", ""));
map.put("content", ConfigUtils.get("agreement", type + "_content", ""));
return map;
}