|
@@ -40,7 +40,7 @@ public class AliyunSmsUtil {
|
|
|
//设置模板编码
|
|
|
request.putQueryParameter("TemplateCode", templateCode);
|
|
|
//设置验证码
|
|
|
- String templateParam = "{\"code\":\"" + smsCode + "\"}";
|
|
|
+ String templateParam = "{\"smsCode\":\"" + smsCode + "\"}";
|
|
|
request.putQueryParameter("TemplateParam", templateParam);
|
|
|
|
|
|
try {
|
|
@@ -50,8 +50,6 @@ public class AliyunSmsUtil {
|
|
|
if(!AliConstants.STATUS_CODE_OK.equals(smsResponse.getCode())){
|
|
|
return null;
|
|
|
}
|
|
|
- } catch (ServerException e) {
|
|
|
- e.printStackTrace();
|
|
|
} catch (ClientException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -62,7 +60,6 @@ public class AliyunSmsUtil {
|
|
|
* 生成6位随机码
|
|
|
*@author huangy
|
|
|
*@return String
|
|
|
- *@throws
|
|
|
*/
|
|
|
public static String GenerateSMSCode() {
|
|
|
String smsVerifyCode = "";
|