修复短信提示密码错误
parent
8acb809c3c
commit
6e04d3fc2e
|
@ -2,7 +2,6 @@ package com.zcloud.util;
|
|||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.crypto.digest.DigestUtil;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
@ -132,9 +131,9 @@ public class SendSmsUtil {
|
|||
JSONObject json = new JSONObject();
|
||||
json.put("username", USERNAME);
|
||||
json.put("tKey", System.currentTimeMillis() / 1000);
|
||||
json.put("password", DigestUtil.md5(PASSWORD + json.getLong("tKey")));
|
||||
json.put("password", MD5.md5(PASSWORD + json.getLong("tKey")));
|
||||
json.put("mobile", mobile);
|
||||
// 短信内容 必须要带上备案好的签名
|
||||
// 短信内容 必须要带上备案好的签名 password wrong
|
||||
json.put("content", SIGNATURE + content);
|
||||
return json;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue