Compare commits

..

No commits in common. "737c323ddc6c2e35574a60a73e71a9970e9d8c20" and "109e1156c8c16e2c6e2a5375354191c88331dd5f" have entirely different histories.

View File

@ -114,9 +114,9 @@ async def baidu_sms_kafka_consumer(ns={}):
})
# 创建日志文件
filename = "baidu_kafka_msg.txt"
if not os.path.exists('/d/zhc/' + filename):
with open('/d/zhc/' + filename, 'w', encoding='utf-8') as f: # 'w' 模式会覆盖已有文件,但检查后使用是安全的
files = "baidu_kafka_msg.txt"
if not os.path.exists(filename):
with open(filename, 'w', encoding='utf-8') as f: # 'w' 模式会覆盖已有文件,但检查后使用是安全的
pass # 创建空文件
else:
pass