mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
fix 修复协议接口没有按新格式返回的bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user