批量来款
This commit is contained in:
+15
@@ -121,4 +121,19 @@ public class AuthenticationUtils {
|
||||
String post = HttpUtil.post(urlBuilder.toString(), jsonString);
|
||||
checkResult(post);
|
||||
}
|
||||
|
||||
/**
|
||||
* 调用会员系统post接口
|
||||
* @param methodName
|
||||
*/
|
||||
public static void post(String methodName, HashMap<String, Object> paramMap) {
|
||||
Map<String, String> stringStringMap = encryptByRsaPriKey();
|
||||
paramMap.put("token", stringStringMap.get("token"));
|
||||
paramMap.put("publicKey", stringStringMap.get("publicKey"));
|
||||
//拼接url路径
|
||||
StringBuilder urlBuilder = new StringBuilder(AuthenticationUtils.URL);
|
||||
urlBuilder.append(methodName);
|
||||
String post = HttpUtil.post(urlBuilder.toString(), paramMap);
|
||||
checkResult(post);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user