Commit 587da988 by Aeolus

update

parent 6bceb15e
...@@ -88,8 +88,6 @@ def run_get_machine_no(): ...@@ -88,8 +88,6 @@ def run_get_machine_no():
machine = Machine.query.filter_by(qrcode_no=qrcode_no, status=1).first() machine = Machine.query.filter_by(qrcode_no=qrcode_no, status=1).first()
if machine: if machine:
if machine.machine_no == qrcode_no: return BaseResponse(data={"machine_no": machine.machine_no, "status": machine.status})
return BaseResponse(data={"machine_no": "0000000000"})
return BaseResponse(data={"machine_no": machine.machine_no})
else: else:
return jsonify(MACHINE_NOT_EXIST_ERROR) return jsonify(MACHINE_NOT_EXIST_ERROR)
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 to comment