Commit 10487e07 by lichenggang

参数和型号都没有的话抛出未检测到参数列

parent 0d5d0364
Showing with 2 additions and 2 deletions
......@@ -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'未识别到参数列'
......
......@@ -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'未识别到参数列'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment