Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
wangming
/
kzy-wx
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 60f87acb
authored
Mar 18, 2020
by
刘志强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '105' into 'master'
105 See merge request
!42
2 parents
bbf4705d
dd68727c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/main/java/com/server/utils/SendSMSUtil.java
src/main/java/com/server/web/controller/UserController.java
src/main/java/com/server/utils/SendSMSUtil.java
View file @
60f87ac
...
...
@@ -29,7 +29,7 @@ public class SendSMSUtil {
//*测试开发可使用“测试Demo”的APP ID,正式上线需要使用自己创建的应用的App ID *
//*应用ID的获取:登陆官网,在“应用-应用列表”,点击应用名称,看应用详情获取APP ID*
//*******************************************************************************
restAPI
.
setAppId
(
"8a
48b55150ccc4290150d0a7a07d1227
"
);
restAPI
.
setAppId
(
"8a
216da870e2267e0170ec04861205c8
"
);
//******************************注释****************************************************************
//*调用发送模板短信的接口发送短信 *
//*参数顺序说明: *
...
...
@@ -69,7 +69,7 @@ public class SendSMSUtil {
//*测试开发可使用“测试Demo”的APP ID,正式上线需要使用自己创建的应用的App ID *
//*应用ID的获取:登陆官网,在“应用-应用列表”,点击应用名称,看应用详情获取APP ID*
//*******************************************************************************
restAPI
.
setAppId
(
"8a
48b55150ccc4290150d0a7a07d1227
"
);
restAPI
.
setAppId
(
"8a
216da870e2267e0170ec04861205c8
"
);
//******************************注释****************************************************************
//*调用发送模板短信的接口发送短信 *
//*参数顺序说明: *
...
...
src/main/java/com/server/web/controller/UserController.java
View file @
60f87ac
...
...
@@ -164,7 +164,7 @@ public class UserController extends BaseController {
}
String
randomCode
=
getRandomStringByLength
(
4
);
try
{
boolean
sendFlag
=
sendSmsCode
(
phone
,
"
46886
"
,
randomCode
);
boolean
sendFlag
=
sendSmsCode
(
phone
,
"
573404
"
,
randomCode
);
if
(
sendFlag
)
{
logger
.
error
(
"短信验证码发送成功"
);
vv
.
set
(
"Kzy_WX_LOGIN_SMS_PHONE_"
+
phone
,
randomCode
,
5
,
TimeUnit
.
MINUTES
);
//缓存验证码,验证成功之后再手动销毁
...
...
@@ -284,4 +284,5 @@ public class UserController extends BaseController {
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment