修正全局变量的获取

This commit is contained in:
2024-10-15 13:27:55 +08:00
parent b332aa00dd
commit c28fc62d3f
3 changed files with 18 additions and 7 deletions

View File

@@ -60,7 +60,18 @@ DISCHARGE_KEY = {
}
def modify_batch_id(batch_id):
# 修改批号的接口
def get_batch_id():
"""
获取处理批号
:return: 处理批号
"""
return BATCH_ID
def set_batch_id(batch_id):
"""
修改处理批号哦
:param batch_id: 新批号
"""
global BATCH_ID
BATCH_ID = batch_id