加签:
Random random = new Random();
int rannum = (int) (random.nextDouble() * (99999 - 10000 + 1)) + 10000;//5位随即数
String nonce = rannum + "";
String signature = HMACSHA1Util.getHmacSHA1(createtime+nonce, appKey);//appKey =公共密钥
String smsUrl="https://"+sjyUrl+":"+sjyPort+"}/rest/sendMessage?appid="+appId+"×tamp="+createtime+"&nonce="+nonce+"&signature="+signature;
Random random = new Random();
in