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