Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-account
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.account
pica-cloud-account
提交
7a0e7803
提交
7a0e7803
编写于
4月 03, 2020
作者:
Chongwen.jiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发送验证码加入非空判断
上级
58a3164d
流水线
#23850
已失败 于阶段
in 0 second
变更
4
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
13 行删除
+17
-13
AutoCodeController.java
...account/account/server/controller/AutoCodeController.java
+6
-2
BaseRequest.java
...om/pica/cloud/account/account/server/req/BaseRequest.java
+6
-6
OneClickLoginReq.java
...ca/cloud/account/account/server/req/OneClickLoginReq.java
+3
-3
AuthCodeServiceImpl.java
...ount/account/server/service/impl/AuthCodeServiceImpl.java
+2
-2
未找到文件。
server/src/main/java/com/pica/cloud/account/account/server/controller/AutoCodeController.java
浏览文件 @
7a0e7803
...
...
@@ -132,7 +132,9 @@ public class AutoCodeController extends AccountBaseController {
// 验证码类型 0默认 1注册 2微信登录绑定手机 3修改手机
// 4重置密码 5忘记密码 7患者招募提交问卷(效验) 8Appe登录绑定手机
BaseRequest
request
=
CryptoUtil
.
decrypt
(
entity
,
BaseRequest
.
class
);
request
.
setSourceType
(
super
.
getSourceType
());
if
(
super
.
getSourceType
()
!=
null
)
{
request
.
setSourceType
(
super
.
getSourceType
());
}
AccountUtils
.
checkMobilePhone
(
request
.
getMobile
());
// 拼图验证
...
...
@@ -162,7 +164,9 @@ public class AutoCodeController extends AccountBaseController {
public
PicaResponse
<
String
>
getAuthCodeWithCaptcha
(
@RequestBody
EncryptEntity
entity
,
HttpServletRequest
req
)
throws
Exception
{
BaseRequest
request
=
CryptoUtil
.
decrypt
(
entity
,
BaseRequest
.
class
);
request
.
setSourceType
(
super
.
getSourceType
());
if
(
super
.
getSourceType
()
!=
null
)
{
request
.
setSourceType
(
super
.
getSourceType
());
}
String
mobilePhone
=
request
.
getMobile
();
String
flag
=
request
.
getFlag
()
+
""
;
String
captchaToken
=
request
.
getCaptchaToken
();
...
...
server/src/main/java/com/pica/cloud/account/account/server/req/BaseRequest.java
浏览文件 @
7a0e7803
...
...
@@ -49,9 +49,9 @@ public class BaseRequest {
@ApiModelProperty
(
"capCode"
)
private
String
capCode
;
@ApiModelProperty
(
"滑动图片的x位置"
)
private
int
xPos
;
private
Integer
xPos
;
@ApiModelProperty
(
"h5端适配缩放后背景图实际宽度"
)
private
int
imageW
;
private
Integer
imageW
;
public
String
getCaptchaToken
()
{
return
captchaToken
;
...
...
@@ -221,19 +221,19 @@ public class BaseRequest {
this
.
capCode
=
capCode
;
}
public
int
getxPos
()
{
public
Integer
getxPos
()
{
return
xPos
;
}
public
void
setxPos
(
int
xPos
)
{
public
void
setxPos
(
Integer
xPos
)
{
this
.
xPos
=
xPos
;
}
public
int
getImageW
()
{
public
Integer
getImageW
()
{
return
imageW
;
}
public
void
setImageW
(
int
imageW
)
{
public
void
setImageW
(
Integer
imageW
)
{
this
.
imageW
=
imageW
;
}
}
server/src/main/java/com/pica/cloud/account/account/server/req/OneClickLoginReq.java
浏览文件 @
7a0e7803
...
...
@@ -13,7 +13,7 @@ public class OneClickLoginReq {
private
String
loginIp
;
private
int
productType
;
private
Integer
productType
=
0
;
public
String
getLoginIp
()
{
return
loginIp
;
...
...
@@ -23,11 +23,11 @@ public class OneClickLoginReq {
this
.
loginIp
=
loginIp
;
}
public
int
getProductType
()
{
public
Integer
getProductType
()
{
return
productType
;
}
public
void
setProductType
(
int
productType
)
{
public
void
setProductType
(
Integer
productType
)
{
this
.
productType
=
productType
;
}
...
...
server/src/main/java/com/pica/cloud/account/account/server/service/impl/AuthCodeServiceImpl.java
浏览文件 @
7a0e7803
...
...
@@ -232,7 +232,7 @@ public class AuthCodeServiceImpl implements AuthCodeService {
return
-
1
;
}
String
capCode
=
paramReq
.
getCapCode
();
int
xPos
=
paramReq
.
getxPos
();
int
xPos
=
paramReq
.
getxPos
()
==
null
?
0
:
paramReq
.
getxPos
()
;
if
(
StringUtils
.
isEmpty
(
capCode
)
||
xPos
<=
0
)
{
String
key
=
Constants
.
JIGSAW_CODE_KEY
.
replace
(
"{mobile}"
,
paramReq
.
getMobile
());
Long
count
=
cacheClient
.
decr
(
key
);
...
...
@@ -249,7 +249,7 @@ public class AuthCodeServiceImpl implements AuthCodeService {
SliderImageRequest
req
=
new
SliderImageRequest
();
req
.
setCapcode
(
capCode
);
req
.
setXpos
(
xPos
);
req
.
setClientBackImageWidth
(
paramReq
.
getImageW
());
req
.
setClientBackImageWidth
(
paramReq
.
getImageW
()
==
null
?
1
:
paramReq
.
getImageW
()
);
resp
=
sliderImageService
.
checkcapcode
(
req
);
logger
.
info
(
"validateJigsawCode-resp:{}"
,
JSON
.
toJSONString
(
resp
));
}
catch
(
Exception
e
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录