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
提交
aa193f49
提交
aa193f49
编写于
6月 13, 2020
作者:
peijun.zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix 一致性
上级
5f1757a4
流水线
#26640
已失败 于阶段
in 0 second
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
5 行删除
+21
-5
AccountController.java
.../account/account/server/controller/AccountController.java
+21
-5
未找到文件。
server/src/main/java/com/pica/cloud/account/account/server/controller/AccountController.java
浏览文件 @
aa193f49
...
...
@@ -224,7 +224,7 @@ public class AccountController extends AccountBaseController {
this
.
checkMobilePhone
(
request
.
getMobile
());
//接入新旭事务一致性
String
batchNo
=
IntactUtils
.
getUUID
();
intactUtil
.
sendIntact
(
batchNo
,
"loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_1
,
"entity:"
+
JSON
.
toJSONString
(
entity
));
intactUtil
.
sendIntact
(
batchNo
,
"
h5-
loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_1
,
"entity:"
+
JSON
.
toJSONString
(
entity
));
AccountReq
req
=
new
AccountReq
();
req
.
setMobilePhone
(
request
.
getMobile
());
// 登录或注册,只能使用验证码
...
...
@@ -237,19 +237,35 @@ public class AccountController extends AccountBaseController {
Account
account
=
accountService
.
getByMobilePhone
(
req
.
getMobilePhone
());
if
(
account
!=
null
)
{
// 登录
PicaResponse
response
=
this
.
login
(
req
);
PicaResponse
response
=
null
;
try
{
response
=
this
.
login
(
req
);
}
catch
(
PicaException
e
)
{
if
(
e
.
getCode
().
equals
(
PicaResultCode
.
PARAM_IS_INVALID
.
code
())
||
e
.
getCode
().
equals
(
PicaResultCode
.
RESULE_DATA_NONE
.
code
())){
intactUtil
.
sendIntact
(
batchNo
,
"h5-loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"验证码错误或过期-不加入提醒,返回值:"
+
JSON
.
toJSONString
(
response
));
}
throw
e
;
}
if
(
response
.
getData
()
!=
null
)
{
LoginResult
result
=
new
LoginResult
();
result
.
setToken
(
response
.
getData
().
toString
());
intactUtil
.
sendIntact
(
batchNo
,
"loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"登录成功,返回值:"
+
JSON
.
toJSONString
(
response
.
getData
()));
intactUtil
.
sendIntact
(
batchNo
,
"
h5-
loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"登录成功,返回值:"
+
JSON
.
toJSONString
(
response
.
getData
()));
return
PicaResponse
.
toResponse
(
result
);
}
return
response
;
}
else
{
// 注册
PicaResponse
<
LoginResult
>
result
=
this
.
register
(
req
);
intactUtil
.
sendIntact
(
batchNo
,
"loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"注册成功,返回值:"
+
JSON
.
toJSONString
(
result
));
PicaResponse
<
LoginResult
>
result
=
null
;
try
{
result
=
this
.
register
(
req
);
}
catch
(
PicaException
e
)
{
if
(
e
.
getCode
().
equals
(
PicaResultCode
.
PARAM_IS_INVALID
.
code
())
||
e
.
getCode
().
equals
(
PicaResultCode
.
RESULE_DATA_NONE
.
code
())){
intactUtil
.
sendIntact
(
batchNo
,
"h5-loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"验证码错误或过期-不加入提醒,返回值:"
+
JSON
.
toJSONString
(
result
));
}
throw
e
;
}
intactUtil
.
sendIntact
(
batchNo
,
"h5-loginRegister"
,
com
.
pica
.
cloud
.
foundation
.
completeness
.
contract
.
constants
.
CommonConstants
.
INTACT_CONTENT_LOG_STATUS_3
,
"注册成功,返回值:"
+
JSON
.
toJSONString
(
result
));
return
result
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录