| | |
| | | * accessSecret 自己的用户accessSecret |
| | | */ |
| | | DefaultProfile profile = DefaultProfile.getProfile( |
| | | "cn-hangzhou", "LTAI5tP56bE38bWvqqfSRkCQ", "lXcIyDrc9K01x3FjSgZqcKlrHwsE8b"); |
| | | "cn-hangzhou", "LTAI5tDuA9DXBJvVfJfMb19L", "IUsWIhUXd9pEgTNEkz1b3POI3javKN"); |
| | | IAcsClient client = new DefaultAcsClient(profile); |
| | | // 构建请求: |
| | | CommonRequest request = new CommonRequest(); |
| | |
| | | // 手机号 |
| | | request.putQueryParameter("PhoneNumbers", phone); |
| | | // 短信签名 |
| | | request.putQueryParameter("SignName", "豆米科技"); |
| | | request.putQueryParameter("SignName", "合肥鼎元旋压科技"); |
| | | // 短信模版CODE |
| | | request.putQueryParameter("TemplateCode", "SMS_243960729"); |
| | | request.putQueryParameter("TemplateCode", "SMS_332555204"); |
| | | // 构建短信验证码 |
| | | request.putQueryParameter("TemplateParam", JSONObject.toJSONString(codeMap)); |
| | | try { |