(HashMap<String,String> hashMap,Model model)
| 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 | * 随机数生成 |
no test coverage detected