Commit 6bceb15e by Aeolus

update

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