Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
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
head_group
xyqb-user2
Commits
32e49fa4
Commit
32e49fa4
authored
Nov 17, 2017
by
Java—KA—李 青
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加错误日志信息
parent
c7086717
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ExceptionHandlingController.java
...antgroup/xyqb/controller/ExceptionHandlingController.java
+1
-1
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+5
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/ExceptionHandlingController.java
View file @
32e49fa4
...
...
@@ -56,7 +56,7 @@ public class ExceptionHandlingController implements IBaseController {
HttpServletRequest
request
=
getRequest
();
String
uri
=
request
.
getRequestURI
();
String
registerFrom
=
request
.
getParameter
(
"registerFrom"
);
LOGGER
.
error
(
"接口异常 URI:{}, registerFrom:{}"
,
uri
,
registerFrom
,
e
);
LOGGER
.
error
(
"
[exception][global_exception]
接口异常 URI:{}, registerFrom:{}"
,
uri
,
registerFrom
,
e
);
return
EXCEPTION_RESULT
;
}
}
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
32e49fa4
...
...
@@ -15,6 +15,7 @@ import cn.quantgroup.xyqb.service.wechat.IWechatService;
import
cn.quantgroup.xyqb.util.IPUtil
;
import
cn.quantgroup.xyqb.util.MqUtils
;
import
cn.quantgroup.xyqb.util.ValidationUtil
;
import
cn.quantgroup.xyqb.util.encrypt.MD5Util
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
...
...
@@ -320,10 +321,12 @@ public class InnerController implements IBaseController {
@LogHttpCaller
public
JsonResult
findUserFullInfoByPhone
(
String
phoneNo
)
{
if
(
StringUtils
.
isBlank
(
phoneNo
))
{
LOGGER
.
warn
(
"[findUserFullInfoByPhone]phoneNo为空"
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
}
Optional
<
UserFullInfo
>
userFullInfoOptional
=
userApiService
.
getUserFullInfoByPhone
(
phoneNo
);
if
(!
userFullInfoOptional
.
isPresent
())
{
LOGGER
.
warn
(
"[findUserFullInfoByPhone]没有用户信息,phoneNo={}"
,
MD5Util
.
build
(
phoneNo
));
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
}
return
JsonResult
.
buildSuccessResult
(
null
,
userFullInfoOptional
.
get
());
...
...
@@ -338,10 +341,12 @@ public class InnerController implements IBaseController {
@LogHttpCaller
public
JsonResult
findUserFullInfoByUUuid
(
String
uuid
)
{
if
(
StringUtils
.
isBlank
(
uuid
))
{
LOGGER
.
warn
(
"[findUserFullInfoByPhone]uuid为空"
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
}
Optional
<
UserFullInfo
>
userFullInfoOptional
=
userApiService
.
getUserFullInfoByUuid
(
uuid
);
if
(!
userFullInfoOptional
.
isPresent
())
{
LOGGER
.
warn
(
"[findUserFullInfoByUUuid]没有用户信息,uuid={}"
,
uuid
);
return
JsonResult
.
buildErrorStateResult
(
null
,
null
);
}
return
JsonResult
.
buildSuccessResult
(
null
,
userFullInfoOptional
.
get
());
...
...
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