记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
董敬伟
liquidnet-bus-v1
Commits
c09b66a8
Commit
c09b66a8
authored
Nov 19, 2021
by
zhanggb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:实名认证服务商CODE处理;
parent
d9898212
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
IdentityUtils.java
...n/java/com/liquidnet/commons/lang/util/IdentityUtils.java
+6
-0
AdamLoginController.java
...iquidnet/service/adam/controller/AdamLoginController.java
+1
-1
AdamRdmService.java
...va/com/liquidnet/service/adam/service/AdamRdmService.java
+9
-3
No files found.
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/util/IdentityUtils.java
View file @
c09b66a8
...
@@ -4,6 +4,7 @@ import org.slf4j.Logger;
...
@@ -4,6 +4,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.LinkedMultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.web.client.UnknownHttpStatusCodeException
;
public
class
IdentityUtils
{
public
class
IdentityUtils
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
IdentityUtils
.
class
);
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
IdentityUtils
.
class
);
...
@@ -20,6 +21,11 @@ public class IdentityUtils {
...
@@ -20,6 +21,11 @@ public class IdentityUtils {
return
HttpUtil
.
post
(
aliThirdUrl
,
params
,
header
);
return
HttpUtil
.
post
(
aliThirdUrl
,
params
,
header
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"###实名认证异常:{}"
,
e
.
getLocalizedMessage
(),
e
);
log
.
error
(
"###实名认证异常:{}"
,
e
.
getLocalizedMessage
(),
e
);
if
(
e
instanceof
UnknownHttpStatusCodeException
)
{
UnknownHttpStatusCodeException
unknownHttpStatusCodeException
=
(
UnknownHttpStatusCodeException
)
e
;
return
unknownHttpStatusCodeException
.
getMessage
();
}
return
null
;
return
null
;
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamLoginController.java
View file @
c09b66a8
...
@@ -343,7 +343,7 @@ public class AdamLoginController {
...
@@ -343,7 +343,7 @@ public class AdamLoginController {
reql
=
Long
.
parseLong
(
otpDecrypt
.
substring
(
11
));
reql
=
Long
.
parseLong
(
otpDecrypt
.
substring
(
11
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
}
}
if
(
l
-
reql
>
3
||
(
null
!=
otpDecrypt
&&
!
otpDecrypt
.
substring
(
0
,
10
).
equals
(
mobile
)))
{
if
(
l
-
reql
>
10
||
(
null
!=
otpDecrypt
&&
!
otpDecrypt
.
substring
(
0
,
10
).
equals
(
mobile
)))
{
log
.
error
(
"login by silent for mobile:{},{}/{},{}-{}"
,
mobile
,
otp
,
otpDecrypt
,
l
,
reql
);
log
.
error
(
"login by silent for mobile:{},{}/{},{}-{}"
,
mobile
,
otp
,
otpDecrypt
,
l
,
reql
);
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"10005"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"10005"
));
}
}
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/service/AdamRdmService.java
View file @
c09b66a8
...
@@ -246,11 +246,17 @@ public class AdamRdmService {
...
@@ -246,11 +246,17 @@ public class AdamRdmService {
throw
new
LiquidnetServiceException
(
errorMessage
.
getCode
(),
errorMessage
.
getMessage
());
throw
new
LiquidnetServiceException
(
errorMessage
.
getCode
(),
errorMessage
.
getMessage
());
}
}
String
respStr
=
IdentityUtils
.
aliThird
(
name
,
idCard
);
String
respStr
=
IdentityUtils
.
aliThird
(
name
,
idCard
)
,
respErrorCode
=
null
;
JsonNode
respJNode
=
JsonUtils
.
fromJson
(
respStr
,
JsonNode
.
class
);
JsonNode
respJNode
=
JsonUtils
.
fromJson
(
respStr
,
JsonNode
.
class
);
if
(
null
==
respJNode
||
!
"0"
.
equals
(
resp
JNode
.
get
(
"error_code"
).
asText
(
)))
{
if
(
null
==
respJNode
||
!
"0"
.
equals
(
resp
ErrorCode
=
String
.
valueOf
(
respJNode
.
get
(
"error_code"
)
)))
{
log
.
info
(
"###实名认证失败[{}]"
,
respStr
);
log
.
info
(
"###实名认证失败[{}]"
,
respStr
);
// this.setCertificationJunk(1, idCard, name);
if
(!
StringUtils
.
isEmpty
(
respErrorCode
)
&&
org
.
apache
.
commons
.
lang3
.
StringUtils
.
indexOf
(
"3000290033"
,
respErrorCode
)
<
0
)
{
// 认证服务商'30002'、'90033'为运营商导致的失败,这里不做缓存标记
this
.
setCertificationJunk
(
1
,
idCard
,
name
);
this
.
setCertificationJunk
(
1
,
idCard
,
name
);
}
ErrorMapping
.
ErrorMessage
errorMessage
=
ErrorMapping
.
get
(
"10102"
);
ErrorMapping
.
ErrorMessage
errorMessage
=
ErrorMapping
.
get
(
"10102"
);
throw
new
LiquidnetServiceException
(
errorMessage
.
getCode
(),
errorMessage
.
getMessage
());
throw
new
LiquidnetServiceException
(
errorMessage
.
getCode
(),
errorMessage
.
getMessage
());
}
}
...
...
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