Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
72270887
Commit
72270887
authored
Dec 31, 2019
by
shangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sonar问题修改7
parent
b2b8e27e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
CashWithdrawalServiceImpl.java
.../oneclickdata/service/impl/CashWithdrawalServiceImpl.java
+3
-1
AESUtil.java
...in/java/cn/quantgroup/cashloanflowboss/utils/AESUtil.java
+2
-1
GetBiNoAndFinanceProducts.java
...oup/cashloanflowboss/utils/GetBiNoAndFinanceProducts.java
+1
-1
EnvUtil.java
...java/cn/quantgroup/cashloanflowboss/utils/ci/EnvUtil.java
+6
-0
HttpService.java
...n/quantgroup/cashloanflowboss/utils/http/HttpService.java
+10
-1
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/oneclickdata/service/impl/CashWithdrawalServiceImpl.java
View file @
72270887
...
...
@@ -107,8 +107,10 @@ public class CashWithdrawalServiceImpl implements CashWithdrawalService{
}
else
{
return
Result
.
buildFail
(
msg
)
;
}
}
else
{
return
Result
.
buildFail
(
"获取结果值空context={}"
,
context
)
;
}
return
Result
.
buildFail
(
"获取结果值空context={}"
,
context
)
;
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/utils/AESUtil.java
View file @
72270887
...
...
@@ -2,6 +2,7 @@ package cn.quantgroup.cashloanflowboss.utils;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.lang3.StringUtils
;
import
javax.crypto.Cipher
;
import
javax.crypto.spec.SecretKeySpec
;
...
...
@@ -97,7 +98,7 @@ public class AESUtil {
*/
public
static
byte
[]
decryptAfterBase64DecodeToByte
(
String
data
,
String
key
)
{
try
{
if
(
key
==
null
||
""
.
equals
(
key
.
trim
().
length
()
))
{
if
(
StringUtils
.
isBlank
(
key
))
{
return
null
;
}
byte
[]
raw
=
key
.
getBytes
(
data_encoding
);
...
...
src/main/java/cn/quantgroup/cashloanflowboss/utils/GetBiNoAndFinanceProducts.java
View file @
72270887
...
...
@@ -16,7 +16,7 @@ public class GetBiNoAndFinanceProducts {
JSONArray
financeProducts
=
new
JSONArray
();
JSONArray
terms
=
new
JSONArray
();
JSONObject
para1
=
new
JSONObject
();
if
(
productId
==
CommonType
.
PRODUCTTYPEONE
.
getCode
()
||
productId
==
CommonType
.
PRODUCTTYPEFOUR
.
getCode
()
||
productId
==
CommonType
.
PRODUCTID900
.
getCode
()
||
productId
==
CommonType
.
PRODUCTID910
.
getCode
()
||
productId
==
CommonType
.
PRODUCTTYPEONE
.
getCode
()){
if
(
productId
==
CommonType
.
PRODUCTTYPEONE
.
getCode
()
||
productId
==
CommonType
.
PRODUCTTYPEFOUR
.
getCode
()
||
productId
==
CommonType
.
PRODUCTID900
.
getCode
()
||
productId
==
CommonType
.
PRODUCTID910
.
getCode
()
||
productId
==
CommonType
.
PRODUCTTYPEONE
.
getCode
()){
if
(
productId
==
CommonType
.
PRODUCTID900
.
getCode
()){
getResult
.
put
(
"biNo"
,
"9"
);
...
...
src/main/java/cn/quantgroup/cashloanflowboss/utils/ci/EnvUtil.java
View file @
72270887
...
...
@@ -120,7 +120,11 @@ public class EnvUtil {
break
;
}
}
}
else
{
return
env
;
}
}
else
{
return
env
;
}
return
env
;
}
...
...
@@ -141,6 +145,8 @@ public class EnvUtil {
break
;
}
}
}
else
{
return
env
;
}
}
return
env
;
...
...
src/main/java/cn/quantgroup/cashloanflowboss/utils/http/HttpService.java
View file @
72270887
...
...
@@ -184,6 +184,7 @@ public class HttpService {
}
if
(
Objects
.
isNull
(
response
)){
log
.
info
(
"当前的response对象是空:{}"
,
response
);
return
resultEntity
;
}
else
{
result
=
doResponse
(
response
,
urlString
);
// 得到响应状态码
...
...
@@ -276,6 +277,7 @@ public class HttpService {
if
(
Objects
.
isNull
(
response
)){
log
.
info
(
"当前的response对象是空:{}"
,
response
);
return
resultEntity
;
}
else
{
result
=
doResponse
(
response
,
url
);
...
...
@@ -355,7 +357,8 @@ public class HttpService {
if
(
response
==
null
){
log
.
info
(
"请求超时,最大超时时间:{},url:{}"
,
CommonConstant
.
HTTPCLIENT_CONNECT_TIMEOUT
,
url
);
result
=
""
;
return
resultEntity
;
}
...
...
@@ -428,6 +431,9 @@ public class HttpService {
case
504
:
System
.
out
.
println
(
"下载504错误代码,网关超时,url:"
+
url
);
break
;
default
:
System
.
out
.
println
(
"下载其他错误代码,url:"
+
url
);
break
;
}
System
.
out
.
println
(
">>>>>>>>>>>>>>>>>>>>>"
);
System
.
out
.
println
(
"打印获取的result: "
+
result
);
...
...
@@ -719,6 +725,9 @@ public class HttpService {
case
504
:
System
.
out
.
println
(
"下载504错误代码,网关超时,url:"
+
urlString
);
break
;
default
:
System
.
out
.
println
(
"下载其他错误代码,url:"
+
urlString
);
break
;
}
System
.
out
.
println
(
">>>>>>>>>>>>>>>>>>>>>"
);
System
.
out
.
println
(
"打印获取的result: "
+
result
);
...
...
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