Commit 715a8267 by baochunxin

#G:修改测试域名

parent b9162759
......@@ -23,7 +23,7 @@ public class VxTemlateSendApi {
/**
* 测试环境路径
*/
private static String url = "http://urgb7d.natappfree.cc/houduan/vx/temlateses/sendTemlate";
private static String url = "http://xrwpuc.natappfree.cc/houduan/vx/temlateses/sendTemlate";
/**
* 签名key
......@@ -44,13 +44,14 @@ public class VxTemlateSendApi {
* @return
*/
public static String sendVxTemlate(Map<String,Object> map){
long timestamp = System.currentTimeMillis();
CheckUtil checkUtil = new CheckUtil(ticketSecrets);
checkUtil.setMap(map);
checkUtil.setValue("timeStamp", new Date().getTime()/1000);
checkUtil.setValue("timeStamp",timestamp);
VerificationCodeParam verificationCodeParam = new VerificationCodeParam();
verificationCodeParam.setSign(checkUtil.makeSign());
verificationCodeParam.setMap(map);
verificationCodeParam.setTimeStamp(Long.valueOf(new Date().getTime()/1000));
verificationCodeParam.setTimeStamp(timestamp);
String jsonString = JSON.toJSONString(verificationCodeParam);
JSONObject jsonObject = JSONObject.parseObject(jsonString);
String post = HttpUtils.sendJsonPost(url, jsonObject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment