Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Ruoyi
Commits
448aa21e
Commit
448aa21e
authored
3 years ago
by
YunaiV
Browse files
Options
Download
Email Patches
Plain Diff
1. 修复用户 APP 发送短信验证码报错
parent
d649b930
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
+1
-1
...dao/module/member/service/auth/MemberAuthServiceImpl.java
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/code/SmsCodeSendReqDTO.java
+2
-1
...dao/module/system/api/sms/dto/code/SmsCodeSendReqDTO.java
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/enums/sms/SmsSceneEnum.java
+2
-1
...n/iocoder/yudao/module/system/enums/sms/SmsSceneEnum.java
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsCallbackController.java
+1
-0
...le/system/controller/admin/sms/SmsCallbackController.java
with
6 additions
and
3 deletions
+6
-3
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
+
1
-
1
View file @
448aa21e
...
...
@@ -304,7 +304,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
@Override
public
void
sendSmsCode
(
Long
userId
,
AppAuthSendSmsReqVO
reqVO
)
{
// TODO 要根据不同的场景,校验是否有用户
smsCodeApi
.
sendSmsCode
(
AuthConvert
.
INSTANCE
.
convert
(
reqVO
));
smsCodeApi
.
sendSmsCode
(
AuthConvert
.
INSTANCE
.
convert
(
reqVO
)
.
setCreateIp
(
getClientIP
())
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/sms/dto/code/SmsCodeSendReqDTO.java
+
2
-
1
View file @
448aa21e
...
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum;
import
lombok.Data
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
/**
* 短信验证码的发送 Request DTO
...
...
@@ -24,7 +25,7 @@ public class SmsCodeSendReqDTO {
/**
* 发送场景
*/
@Not
Empty
(
message
=
"发送场景不能为空"
)
@Not
Null
(
message
=
"发送场景不能为空"
)
@InEnum
(
SmsSceneEnum
.
class
)
private
Integer
scene
;
/**
...
...
This diff is collapsed.
Click to expand it.
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/enums/sms/SmsSceneEnum.java
+
2
-
1
View file @
448aa21e
...
...
@@ -43,7 +43,8 @@ public enum SmsSceneEnum implements IntArrayValuable {
}
public
static
SmsSceneEnum
getCodeByScene
(
Integer
scene
)
{
return
ArrayUtil
.
firstMatch
(
sceneEnum
->
sceneEnum
.
getScene
().
equals
(
scene
));
return
ArrayUtil
.
firstMatch
(
sceneEnum
->
sceneEnum
.
getScene
().
equals
(
scene
),
values
());
}
}
This diff is collapsed.
Click to expand it.
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsCallbackController.java
+
1
-
0
View file @
448aa21e
...
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletRequest;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
.
CommonResult
.
success
;
// TODO 芋艿:这块的接口命名,在纠结下
@Api
(
tags
=
"管理后台 - 短信回调"
)
@RestController
@RequestMapping
(
"/system/sms/callback"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment
Menu
Projects
Groups
Snippets
Help