MCPcopy Create free account
hub / github.com/0x727/DropLabTools / modelSet

Method modelSet

src/main/java/com/droplab/Utils/CommonUtils.java:24–37  ·  view source on GitHub ↗
(HashMap<String,String> hashMap,Model model)

Source from the content-addressed store, hash-verified

22 }
23
24 public static Model modelSet(HashMap<String,String> hashMap,Model model){
25 if(!hashMap.isEmpty()){
26 Iterator<String> iterator = hashMap.keySet().iterator();
27 while (iterator.hasNext()){
28 String key=iterator.next();
29 model.addAttribute(key,hashMap.get(key));
30 }
31 }
32 if(InfoUtils.openProxy){ //自动加上代理设置
33 model.addAttribute("proxyset",String.format("proxy->%s://%s:%s@%s:%s",
34 InfoUtils.ProxyType,InfoUtils.ProxyUsername,InfoUtils.ProxyPassword,InfoUtils.ProxyHost,InfoUtils.ProxyPort));
35 }
36 return model;
37 }
38
39 /**
40 * 随机数生成

Callers 15

showMethod · 0.95
indexMethod · 0.95
YongyouCheckURLMethod · 0.95
GetUnserializePayloadMethod · 0.95
indexMethod · 0.95
A6V5FastJsonMethod · 0.95
A6FileUploadPocMethod · 0.95
htmlofficeservletMethod · 0.95
DBPassDecodeMethod · 0.95
proxySetMethod · 0.95
proxyMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected