代码优化

This commit is contained in:
egzosn
2018-11-21 14:32:30 +08:00
parent 5760fbd334
commit 0b68cc5cca
4 changed files with 6 additions and 9 deletions

View File

@@ -133,7 +133,7 @@ public abstract class BasePayService<PC extends PayConfigStorage> implements Pay
Map<String, Object> params = new TreeMap<String,Object>();
for (Map.Entry<String, String[]> entry : parameterMap.entrySet()) {
String name = (String) entry.getKey();
String name = entry.getKey();
String[] values = entry.getValue();
String valueStr = "";
for (int i = 0,len = values.length; i < len; i++) {

View File

@@ -88,7 +88,7 @@ public class UriVariables {
public static String getMapToParameters(Map pe){
StringBuilder builder = new StringBuilder();
for (Map.Entry entry : (Set<Map.Entry>)pe.entrySet()) {
Object o = entry.getKey();
Object o = entry.getValue();
if (null == o) {
continue;