fix 修复协议接口没有按新格式返回的bug
This commit is contained in:
parent
f0451376f9
commit
d8ff09aadf
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue