Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
10487e07
authored
Jun 05, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
参数和型号都没有的话抛出未检测到参数列
parent
0d5d0364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
classify_server.py
http_server.py
classify_server.py
View file @
10487e07
...
...
@@ -27,7 +27,7 @@ class Classify(classify_pb2_grpc.classifyServicer):
'status'
:
0
,
'err_msg'
:
f
'未识别到数量列'
}
if
'参数'
not
in
str
(
res
):
if
'参数'
not
in
str
(
res
)
and
'型号'
not
in
str
(
res
)
:
res
=
{
'status'
:
0
,
'err_msg'
:
f
'未识别到参数列'
...
...
http_server.py
View file @
10487e07
...
...
@@ -46,7 +46,7 @@ class DictHandler(BaseHandler):
'status'
:
0
,
'err_msg'
:
f
'未识别到数量列'
}
if
'参数'
not
in
str
(
res
):
if
'参数'
not
in
str
(
res
)
and
'型号'
not
in
str
(
res
)
:
res
=
{
'status'
:
0
,
'err_msg'
:
f
'未识别到参数列'
...
...
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