String url = "https://dfsns.market.alicloudapi.com/data/send_sms";
String appcode = "363efa0e07bb4c368b05f500db153ec5";
int code = RandomUtil.randomInt(1000,10000);
String result = HttpRequest.post(url)
.header("Authorization", "APPCODE "+appcode)
.body("content=code:"+code+"&template_id=TPL_0000&phone_number="+tel)
.execute().body();
JSONObject object = JSONUtil.parseObj(result);
if(!object.get("status").equals("OK")){
log.error("发送验证码错误:{}",object.get("reason"));
throw new BizException(404,"发送验证码错误");
}