Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
d2121ec2
Commit
d2121ec2
authored
Jan 09, 2020
by
huangjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
d329e750
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
calc_result/main.py
+3
-3
No files found.
calc_result/main.py
View file @
d2121ec2
...
...
@@ -20,7 +20,7 @@ FK_REDIS_DB = env_dist.get('FK_REDIS_DB') #获取redis库
#使用任务号获取任务信息
def
getInfo_ByBatchNo
(
BatchNo
):
Info_task
=
[]
url
=
'http
://47.94.0.45:9011
/risk-api/getInfoByBatchNo'
#获取信息接口
url
=
'http
s://risk-api.gongsibao.com
/risk-api/getInfoByBatchNo'
#获取信息接口
name
=
{
"batchCode"
:
BatchNo
}
# 根据任务号进行接口访问参数
taskInfo
=
requests
.
get
(
url
,
name
)
# 访问接口返回的信息
taskInfo_New
=
json
.
loads
(
taskInfo
.
text
)
...
...
@@ -47,7 +47,7 @@ def getInfo_ByBatchNo(BatchNo):
#获取自定义的期数
def
customBatch
(
custom_currentIssue
,
offset
,
timeType
):
url
=
'http
://47.94.0.45:9011
/risk-api/getIssueByCustomer'
#获取信息接口
url
=
'http
s://risk-api.gongsibao.com
/risk-api/getIssueByCustomer'
#获取信息接口
name
=
{
"currentIssue"
:
custom_currentIssue
,
"offset"
:
offset
,
"timeType"
:
timeType
}
# 接口访问参数
batchInfo
=
requests
.
post
(
url
,
name
)
# 访问接口返回的信息
batchInfo_New
=
json
.
loads
(
batchInfo
.
text
)
...
...
@@ -84,7 +84,7 @@ def getValue(batchCode,cellPos,currentIssue,fileCode,taxCode,timeType):
fileCode
=
str
(
fileCode
)
taxCode
=
str
(
taxCode
)
timeType
=
str
(
timeType
)
url
=
'http
://47.94.0.45:9011
/risk-api/getCellValuesByIssue'
#获取信息接口
url
=
'http
s://risk-api.gongsibao.com
/risk-api/getCellValuesByIssue'
#获取信息接口
name
=
{
"batchCode"
:
batchCode
,
"cellPos"
:
cellPos
,
"currentIssue"
:
currentIssue
,
"fileCode"
:
fileCode
,
"taxCode"
:
taxCode
,
"timeType"
:
timeType
}
# 接口访问参数
contentInfo
=
requests
.
post
(
url
,
name
)
# 访问接口返回的信息
batchInfo_New
=
json
.
loads
(
contentInfo
.
text
)
...
...
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