67,513
社区成员
发帖
与我相关
我的任务
分享
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
public static void main(String[] args) throws Exception {
// 申请提现
String nonce_str = "dzzb" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
String stringSignTemp = "mch_id=" + MCHID + "&nonce_str=" + nonce_str + "&sign_type=MD5"
+ "&key=" + KEY;
String sign = MD5Util.MD5(stringSignTemp).toUpperCase();
String xml = "<xml>" + "<mch_id>" + MCHID + "</mch_id>" + "<nonce_str>" + nonce_str + "</nonce_str>"
+ "<sign_type>MD5</sign_type>" + "<sign>" + sign + "</sign>" + "</xml>";
String refund = Certificate.doRefund("https://fraud.mch.weixin.qq.com/risk/getpublickey", xml).toString();
System.out.println(refund);
}