From 6e04d3fc2e8673c9857ed311af291f59cbd3be64 Mon Sep 17 00:00:00 2001 From: shanao Date: Fri, 25 Oct 2024 10:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9F=AD=E4=BF=A1=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zcloud/util/SendSmsUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zcloud/util/SendSmsUtil.java b/src/main/java/com/zcloud/util/SendSmsUtil.java index dac7f698..45716675 100644 --- a/src/main/java/com/zcloud/util/SendSmsUtil.java +++ b/src/main/java/com/zcloud/util/SendSmsUtil.java @@ -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; }