Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
284a3cb9
Commit
284a3cb9
authored
Jan 03, 2025
by
honghy
Committed by
wux
Jan 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旧版本登录处理
parent
f42281d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
AppAuthSendSmsReqVO.java
...le/member/controller/app/auth/vo/AppAuthSendSmsReqVO.java
+8
-5
MemberAuthServiceImpl.java
...dao/module/member/service/auth/MemberAuthServiceImpl.java
+14
-0
No files found.
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthSendSmsReqVO.java
View file @
284a3cb9
...
...
@@ -23,7 +23,7 @@ public class AppAuthSendSmsReqVO {
private
String
mobile
;
@ApiModelProperty
(
value
=
"业务节点"
,
required
=
true
)
@NotNull
(
message
=
"节点不能为空"
)
//
@NotNull(message = "节点不能为空")
private
String
nodeValue
;
@ApiModelProperty
(
value
=
"区号"
,
required
=
true
)
...
...
@@ -31,18 +31,21 @@ public class AppAuthSendSmsReqVO {
private
String
areaCode
;
@ApiModelProperty
(
value
=
"是否匹配运输方式"
,
required
=
true
)
@NotNull
(
message
=
"是否匹配运输方式不能为空"
)
//
@NotNull(message = "是否匹配运输方式不能为空")
private
Integer
isTransport
;
@ApiModelProperty
(
value
=
"运输方式"
,
required
=
true
)
@NotNull
(
message
=
"运输方式不能空"
)
//
@NotNull(message = "运输方式不能空")
private
Integer
transportId
;
@ApiModelProperty
(
value
=
"是否多订单不能为空"
,
required
=
true
)
@NotNull
(
message
=
"是否多订单不能为空"
)
//
@NotNull(message = "是否多订单不能为空")
private
Integer
isOrders
;
@ApiModelProperty
(
value
=
"发送类型不能为空"
,
required
=
true
)
@NotNull
(
message
=
"发送类型不能为空"
)
//
@NotNull(message = "发送类型不能为空")
private
Integer
messageType
;
// 登录遗留处理:scene = 1
private
Integer
scene
;
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
View file @
284a3cb9
...
...
@@ -38,6 +38,9 @@ import cn.iocoder.yudao.module.system.api.social.SocialUserApi;
import
cn.iocoder.yudao.module.system.controller.admin.mail.vo.template.MailTemplateSendReqVO
;
import
cn.iocoder.yudao.module.system.enums.logger.LoginLogTypeEnum
;
import
cn.iocoder.yudao.module.system.enums.logger.LoginResultEnum
;
import
cn.iocoder.yudao.module.system.enums.sms.SmsIsOrdersEnum
;
import
cn.iocoder.yudao.module.system.enums.sms.SmsIsTransportEnum
;
import
cn.iocoder.yudao.module.system.enums.sms.SmsMessageTypeEnum
;
import
cn.iocoder.yudao.module.system.enums.sms.SmsNodeEnum
;
import
cn.iocoder.yudao.module.system.service.mail.MailSendService
;
import
com.google.common.annotations.VisibleForTesting
;
...
...
@@ -517,6 +520,17 @@ public class MemberAuthServiceImpl implements MemberAuthService {
@Override
public
void
sendSmsCode
(
Long
userId
,
AppAuthSendSmsReqVO
reqVO
)
{
if
(
StringUtils
.
isBlank
(
reqVO
.
getNodeValue
()))
{
// 旧版本登录处理
if
(
reqVO
.
getScene
()!=
null
&&
reqVO
.
getScene
()==
1
)
{
reqVO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqVO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_IS_TRANSPORT_0
.
getValue
());
reqVO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
reqVO
.
setNodeValue
(
SmsNodeEnum
.
MEMBER_LOGIN
.
getNodeValue
());
// 其他
reqVO
.
setTransportId
(
0
);
}
}
String
mobileCode
=
reqVO
.
getAreaCode
()
+
StrUtil
.
COLON
+
reqVO
.
getMobile
();
paramValidatorApi
.
validatorMobile
(
mobileCode
);
String
mobile
=
PhoneUtil
.
formatPhone
(
mobileCode
);
...
...
Write
Preview
Markdown
is supported
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