Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
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
rl
hls-support-rlwx
Commits
0383ca92
Commit
0383ca92
authored
Dec 26, 2022
by
胡建龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]维护工具类中参数取值方式
parent
5ca40de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
ApiUtils.java
core/src/main/java/com/hand/app/pingAn/utils/ApiUtils.java
+15
-2
No files found.
core/src/main/java/com/hand/app/pingAn/utils/ApiUtils.java
View file @
0383ca92
package
com
.
hand
.
app
.
pingAn
.
utils
;
package
com
.
hand
.
app
.
pingAn
.
utils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.hand.app.cmb.service.impl.HclcCmbPolyServiceImpl
;
import
com.hand.app.cmb.util.Utils
;
import
com.pingan.openbank.api.sdk.client.ApiClient
;
import
com.pingan.openbank.api.sdk.client.ApiClient
;
import
com.pingan.openbank.api.sdk.common.http.HttpResult
;
import
com.pingan.openbank.api.sdk.common.http.HttpResult
;
import
com.pingan.openbank.api.sdk.entity.*
;
import
com.pingan.openbank.api.sdk.entity.*
;
import
org.slf4j.LoggerFactory
;
import
java.io.File
;
import
java.io.File
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Properties
;
public
class
ApiUtils
{
public
class
ApiUtils
{
private
static
ApiClient
apiClient
=
ApiClient
.
getInstance
(
"pingAn.properties"
);
private
static
ApiClient
apiClient
=
ApiClient
.
getInstance
(
"pingAn.properties"
);
private
static
JSONObject
baseReqBody
=
new
JSONObject
();
private
static
JSONObject
baseReqBody
=
new
JSONObject
();
private
static
Calendar
cal
=
null
;
private
static
Calendar
cal
=
null
;
private
static
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyyMMddHHmmssSSS"
);
private
static
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyyMMddHHmmssSSS"
);
private
static
String
MrchCode
=
"0090108040000KTAR000"
;
private
static
Properties
pro
=
null
;
public
static
String
AcctNo
=
"15000101414037"
;
private
static
String
MrchCode
;
public
static
String
AcctNo
;
static
{
static
{
String
path
=
Thread
.
currentThread
().
getContextClassLoader
().
getResource
(
""
).
getPath
().
substring
(
1
);
pro
=
Utils
.
loadProp
(
path
+
"pingAn.properties"
);
if
(
Objects
.
isNull
(
pro
))
{
LoggerFactory
.
getLogger
(
HclcCmbPolyServiceImpl
.
class
).
error
(
"配置文件初始化异常"
);
}
// todo 设置通用的请求参数,比如主账号,流水号,企业银企直连标准代码等
// todo 设置通用的请求参数,比如主账号,流水号,企业银企直连标准代码等
MrchCode
=
pro
.
getProperty
(
"MrchCode"
);
AcctNo
=
pro
.
getProperty
(
"AcctNo"
);
baseReqBody
.
put
(
"MrchCode"
,
MrchCode
);
baseReqBody
.
put
(
"MrchCode"
,
MrchCode
);
baseReqBody
.
put
(
"MainAccount"
,
AcctNo
);
baseReqBody
.
put
(
"MainAccount"
,
AcctNo
);
}
}
...
...
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