批量来款

This commit is contained in:
baozhipeng
2021-09-22 20:37:55 +08:00
parent 57f172b34b
commit 82a0c21ada
4 changed files with 51 additions and 23 deletions
@@ -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);
}
}