Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
2f3f1fba
Commit
2f3f1fba
authored
Apr 06, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时代理
parent
1f53a90b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
new-user/src/main/java/com/winsun/controller/StartSelectController.java
+4
-4
No files found.
new-user/src/main/java/com/winsun/controller/StartSelectController.java
View file @
2f3f1fba
...
@@ -247,10 +247,10 @@ public class StartSelectController {
...
@@ -247,10 +247,10 @@ public class StartSelectController {
private
JSONObject
getOrderBYSRHInfo
(
Map
<
String
,
String
[]>
parameterMap
,
String
currentTimeStr
,
String
productId
,
Map
<
String
,
String
>
objectMap
)
throws
Exception
{
private
JSONObject
getOrderBYSRHInfo
(
Map
<
String
,
String
[]>
parameterMap
,
String
currentTimeStr
,
String
productId
,
Map
<
String
,
String
>
objectMap
)
throws
Exception
{
List
<
NameValuePair
>
qParams
=
new
ArrayList
<
NameValuePair
>();
List
<
NameValuePair
>
qParams
=
new
ArrayList
<
NameValuePair
>();
HttpHost
proxy
=
new
HttpHost
(
"172.18.101.170"
,
3128
);
//
HttpHost proxy = new HttpHost("172.18.101.170", 3128);
RequestConfig
defaultRequestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
500000
)
RequestConfig
defaultRequestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
500000
)
.
setConnectTimeout
(
500000
).
setConnectionRequestTimeout
(
500000
)
.
setConnectTimeout
(
500000
).
setConnectionRequestTimeout
(
500000
)
.
setProxy
(
proxy
)
//
.setProxy(proxy)
.
build
();
.
build
();
CloseableHttpClient
httpclient
=
HttpClients
.
custom
().
setDefaultRequestConfig
(
defaultRequestConfig
)
CloseableHttpClient
httpclient
=
HttpClients
.
custom
().
setDefaultRequestConfig
(
defaultRequestConfig
)
...
@@ -669,10 +669,10 @@ public class StartSelectController {
...
@@ -669,10 +669,10 @@ public class StartSelectController {
private
JSONObject
getSaleId
(
String
productId
,
String
currentTimeStr
)
throws
Exception
{
private
JSONObject
getSaleId
(
String
productId
,
String
currentTimeStr
)
throws
Exception
{
List
<
NameValuePair
>
qParams
=
new
ArrayList
<
NameValuePair
>();
List
<
NameValuePair
>
qParams
=
new
ArrayList
<
NameValuePair
>();
Map
<
String
,
String
>
signMap
=
new
HashMap
<
String
,
String
>();
//待签名参数
Map
<
String
,
String
>
signMap
=
new
HashMap
<
String
,
String
>();
//待签名参数
HttpHost
proxy
=
new
HttpHost
(
"172.18.101.170"
,
3128
);
//
HttpHost proxy = new HttpHost("172.18.101.170", 3128);
RequestConfig
defaultRequestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
500000
)
RequestConfig
defaultRequestConfig
=
RequestConfig
.
custom
().
setSocketTimeout
(
500000
)
.
setConnectTimeout
(
500000
).
setConnectionRequestTimeout
(
500000
)
.
setConnectTimeout
(
500000
).
setConnectionRequestTimeout
(
500000
)
.
setProxy
(
proxy
)
//
.setProxy(proxy)
.
build
();
.
build
();
CloseableHttpClient
httpclient
=
HttpClients
.
custom
().
setDefaultRequestConfig
(
defaultRequestConfig
)
CloseableHttpClient
httpclient
=
HttpClients
.
custom
().
setDefaultRequestConfig
(
defaultRequestConfig
)
.
build
();
.
build
();
...
...
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