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
fb8f5ea4
Commit
fb8f5ea4
authored
Jun 09, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
7458e80f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
9 deletions
+12
-9
entprofile/dao/__pycache__/tj_provide_company.cpython-37.pyc
+0
-0
entprofile/dao/tj_provide_company.py
+0
-0
entprofile/main.py
+10
-9
entprofile/service/__pycache__/online_GetLicenseImage.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
+0
-0
entprofile/service/online_GetLicenseImage.py
+1
-0
entprofile/service/user_behavior.py
+1
-0
No files found.
entprofile/dao/__pycache__/tj_provide_company.cpython-37.pyc
View file @
fb8f5ea4
No preview for this file type
entprofile/dao/tj_provide_company.py
View file @
fb8f5ea4
This diff is collapsed.
Click to expand it.
entprofile/main.py
View file @
fb8f5ea4
...
@@ -35,12 +35,15 @@ CORS(server,supports_credentials=True) #跨域请求
...
@@ -35,12 +35,15 @@ CORS(server,supports_credentials=True) #跨域请求
recomm
=
Recom
()
recomm
=
Recom
()
companybase
=
CompanyBase
()
companybase
=
CompanyBase
()
moneyAPI
(
server
)
moneyAPI
(
server
)
imageInfo
(
server
)
imageInfo
(
server
)
selectcyle
(
server
)
selectcyle
(
server
)
#
insertcycle(server)
insertcycle
(
server
)
getImageInfo
(
server
)
getImageInfo
(
server
)
#
getlicenceInfo(server)
getlicenceInfo
(
server
)
gaoguan
(
server
)
gaoguan
(
server
)
gudong
(
server
)
gudong
(
server
)
nianbao
(
server
)
nianbao
(
server
)
...
@@ -94,11 +97,11 @@ def lable_post():
...
@@ -94,11 +97,11 @@ def lable_post():
# return common_result.to_result(product_result)
# return common_result.to_result(product_result)
#商机
#商机
@server.route
(
'/api/business'
,
methods
=
[
'POST'
])
#
@server.route('/api/business',methods=['POST'])
def
business_post
():
#
def business_post():
if
request
.
method
==
'POST'
:
#
if request.method == 'POST':
business_result
=
recomm
.
business
()
#
business_result = recomm.business()
return
common_result
.
to_result
(
business_result
)
#
return common_result.to_result(business_result)
#商机推荐结果
#商机推荐结果
@server.route
(
'/api/businessProduct'
,
methods
=
[
'POST'
])
@server.route
(
'/api/businessProduct'
,
methods
=
[
'POST'
])
...
@@ -113,10 +116,8 @@ def business_product_post():
...
@@ -113,10 +116,8 @@ def business_product_post():
business_type
=
request_data
.
get
(
'businessType'
)
business_type
=
request_data
.
get
(
'businessType'
)
business_product_result
,
reason
=
recomm
.
business_product
(
business_id
,
business_type
)
business_product_result
,
reason
=
recomm
.
business_product
(
business_id
,
business_type
)
if
business_type
!=
"智能监测"
:
if
business_type
!=
"智能监测"
:
return
common_result
.
to_result
(
business_product_result
)
return
common_result
.
to_result
(
business_product_result
)
else
:
else
:
result
=
common_result
.
to_result
(
business_product_result
)
result
=
common_result
.
to_result
(
business_product_result
)
result
[
'survey_reason'
]
=
reason
result
[
'survey_reason'
]
=
reason
return
result
return
result
...
...
entprofile/service/__pycache__/online_GetLicenseImage.cpython-37.pyc
View file @
fb8f5ea4
No preview for this file type
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
View file @
fb8f5ea4
No preview for this file type
entprofile/service/online_GetLicenseImage.py
View file @
fb8f5ea4
...
@@ -140,6 +140,7 @@ def getlicenceInfo(server):
...
@@ -140,6 +140,7 @@ def getlicenceInfo(server):
requestdata
=
request
.
json
requestdata
=
request
.
json
print
(
requestdata
)
print
(
requestdata
)
companyname
=
requestdata
.
get
(
'companyname'
)
companyname
=
requestdata
.
get
(
'companyname'
)
print
(
'证照companyname'
,
companyname
)
companyname
=
re_companyName
.
strQ2B
(
companyname
)
companyname
=
re_companyName
.
strQ2B
(
companyname
)
LicenseInfo1
=
GetGXLicensesFromES
(
companyname
)
LicenseInfo1
=
GetGXLicensesFromES
(
companyname
)
LicenseInfo2
=
GetgameLicensesFromES
(
companyname
)
LicenseInfo2
=
GetgameLicensesFromES
(
companyname
)
...
...
entprofile/service/user_behavior.py
View file @
fb8f5ea4
...
@@ -334,6 +334,7 @@ class Recom:
...
@@ -334,6 +334,7 @@ class Recom:
if
product_select
==
"智能监测"
:
if
product_select
==
"智能监测"
:
if
data
[
'survey_product'
]:
if
data
[
'survey_product'
]:
if
data
[
'survey_product_reason'
]:
if
data
[
'survey_product_reason'
]:
print
(
"data['survey_product_reason']"
,
data
[
'survey_product_reason'
])
resaon
=
json
.
loads
(
data
[
'survey_product_reason'
])
resaon
=
json
.
loads
(
data
[
'survey_product_reason'
])
survey
=
eval
(
data
[
'survey_product'
])
survey
=
eval
(
data
[
'survey_product'
])
for
surveyitem
in
survey
:
for
surveyitem
in
survey
:
...
...
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