From c8d237747918de7618c9bbd3ad21f782cee168ab Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期四, 06 一月 2022 16:32:00 +0800 Subject: [PATCH] 商业街代码提交 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/SmsUtil.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/SmsUtil.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/SmsUtil.java index d8536df..e580f27 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/SmsUtil.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/SmsUtil.java @@ -7,6 +7,7 @@ private final static String URL = "https://106.ihuyi.com/webservice/sms.php?method=Submit"; private final static String ACCOUNT="C87595580"; private final static String PASSWORD="b66d918a598ad126b85b13e82a38e165"; + private final static String CONTENT="您有一笔订单还未付款,超时未付款订单将自动取消。"; public int sendCode(String mobile,String code){ try { String requestUrl=URL+"&account="+ACCOUNT+"&password="+PayUtil.MD5(PASSWORD)+"&mobile="+mobile+"&content="+"您的验证码是:"+code+"。请不要把验证码泄露给其他人。"; @@ -24,9 +25,9 @@ return 0; } - public int sendContent(String mobile,String content){ + public int sendContent(String mobile){ try { - String requestUrl=URL+"&account="+ACCOUNT+"&password="+PayUtil.MD5(PASSWORD)+"&mobile="+mobile+"&content="+content; + String requestUrl=URL+"&account="+ACCOUNT+"&password="+PayUtil.MD5(PASSWORD)+"&mobile="+mobile+"&content="+CONTENT; String res=HttpClientUtil.httpGet(requestUrl, null,null); JSONObject jsonObject=XML.toJSONObject(res); if(jsonObject.get("SubmitResult")!=null){ -- Gitblit v1.7.1